Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
84c4b7f1
Commit
84c4b7f1
authored
Jul 18, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test fixes
parent
480e97a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
cms/djangoapps/contentstore/tests/test_contentstore.py
+1
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+2
-2
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
+1
-1
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
84c4b7f1
...
...
@@ -134,7 +134,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
check_components_on_page
(
ADVANCED_COMPONENT_TYPES
,
[
'Video Alpha'
,
'Word cloud'
,
'Annotation'
,
'Open
Ended Grading
'
,
'Open
Response Assessment
'
,
'Peer Grading Interface'
])
def
test_advanced_components_require_two_clicks
(
self
):
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
84c4b7f1
...
...
@@ -614,14 +614,14 @@ class CombinedOpenEndedV1Module():
return
self
.
out_of_sync_error
(
data
)
self
.
student_attempts
+=
1
if
self
.
student_attempts
>=
self
.
attempts
:
if
self
.
student_attempts
>=
self
.
max_
attempts
:
return
{
'success'
:
False
,
# This is a student_facing_error
'error'
:
(
'You have attempted this question {0} times. '
'You are only allowed to attempt it {1} times.'
)
.
format
(
self
.
student_attempts
,
self
.
attempts
)
)
.
format
(
self
.
student_attempts
,
self
.
max_
attempts
)
}
self
.
state
=
self
.
INITIAL
self
.
ready_to_reset
=
False
...
...
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
View file @
84c4b7f1
...
...
@@ -335,7 +335,7 @@ class CombinedOpenEndedModuleTest(unittest.TestCase):
's3_interface'
:
test_util_open_ended
.
S3_INTERFACE
,
'open_ended_grading_interface'
:
test_util_open_ended
.
OPEN_ENDED_GRADING_INTERFACE
,
'skip_basic_checks'
:
False
,
'
is_
graded'
:
True
,
'graded'
:
True
,
}
oeparam
=
etree
.
XML
(
'''
...
...
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