Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
4362fd1a
Commit
4362fd1a
authored
May 28, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test datetime fixups
parent
6f41e465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
apps/openassessment/xblock/test/test_message.py
+2
-8
No files found.
apps/openassessment/xblock/test/test_message.py
View file @
4362fd1a
...
...
@@ -20,8 +20,7 @@ class TestMessageRender(XBlockHandlerTestCase):
# Sets up all of the pre-set dates. Uses base day of today in order to allow
# comparison regardless of true date. For this reason, the dates in the XML are
# ignored and irrelevant (because we patch is_closed)
TODAY
=
dt
.
date
.
today
()
TODAY
=
dt
.
datetime
(
TODAY
.
year
,
TODAY
.
month
,
TODAY
.
day
,
0
,
0
,
0
,
tzinfo
=
pytz
.
utc
)
TODAY
=
dt
.
datetime
.
utcnow
()
.
replace
(
tzinfo
=
pytz
.
utc
)
TOMORROW
=
TODAY
+
dt
.
timedelta
(
days
=
1
)
FUTURE
=
TODAY
+
dt
.
timedelta
(
days
=
10
)
FAR_FUTURE
=
TODAY
+
dt
.
timedelta
(
days
=
100
)
...
...
@@ -77,10 +76,6 @@ class TestMessageRender(XBlockHandlerTestCase):
# Sets the side effect of is_closed to be our custom method, completing the patch
mock_is_closed
.
side_effect
=
closed_side_effect
# self.request(xblock, 'render_message', )
#from nose.tools import set_trace; set_trace()
xblock
.
render_message
(
None
,
''
)
# Asserts that the message_mixin correctly derived the path and context to be rendered
...
...
@@ -786,4 +781,4 @@ class TestMessageRender(XBlockHandlerTestCase):
self
.
_assert_path_and_context
(
xblock
,
expected_path
,
expected_context
,
status
,
deadline_information
,
has_peers_to_grade
)
\ No newline at end of file
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment