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
5e916fdb
Commit
5e916fdb
authored
Apr 08, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #265 from edx/will/fix-master
Fix tests that broke during text updates
parents
313a6c1e
df16c5c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
apps/openassessment/xblock/static/js/spec/oa_server.js
+1
-1
apps/openassessment/xblock/test/test_submission.py
+4
-4
No files found.
apps/openassessment/xblock/static/js/spec/oa_server.js
View file @
5e916fdb
...
...
@@ -346,7 +346,7 @@ describe("OpenAssessment.Server", function() {
receivedMsg
=
errMsg
;
});
expect
(
receivedMsg
).
toContain
(
"Th
is problem could not be sav
ed"
);
expect
(
receivedMsg
).
toContain
(
"Th
e server could not be contact
ed"
);
});
...
...
apps/openassessment/xblock/test/test_submission.py
View file @
5e916fdb
...
...
@@ -112,7 +112,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock
,
'openassessmentblock/response/oa_response.html'
,
{
'saved_response'
:
''
,
'save_status'
:
'
Unsaved draft
'
,
'save_status'
:
'
This response has not been saved.
'
,
'submit_enabled'
:
False
,
'submission_due'
:
dt
.
datetime
(
2999
,
5
,
6
)
.
replace
(
tzinfo
=
pytz
.
utc
),
}
...
...
@@ -124,7 +124,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock
,
'openassessmentblock/response/oa_response.html'
,
{
'saved_response'
:
''
,
'save_status'
:
'
Unsaved draft
'
,
'save_status'
:
'
This response has not been saved.
'
,
'submit_enabled'
:
False
,
}
)
...
...
@@ -140,7 +140,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock
,
'openassessmentblock/response/oa_response.html'
,
{
'saved_response'
:
'A man must have a code'
,
'save_status'
:
'
Saved but not submitted
'
,
'save_status'
:
'
This response has been saved but not submitted.
'
,
'submit_enabled'
:
True
,
'submission_due'
:
dt
.
datetime
(
2999
,
5
,
6
)
.
replace
(
tzinfo
=
pytz
.
utc
),
}
...
...
@@ -231,7 +231,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
def
test_integration
(
self
,
xblock
):
# Expect that the response step is open and displays the deadline
resp
=
self
.
request
(
xblock
,
'render_submission'
,
json
.
dumps
(
dict
()))
self
.
assertIn
(
'
Please provide your response below
'
,
resp
)
self
.
assertIn
(
'
Enter your response to the question
'
,
resp
)
self
.
assertIn
(
'Monday, May 6, 2999 00:00 UTC'
,
resp
)
# Create a submission for the user
...
...
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