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
a9a8dcf8
Commit
a9a8dcf8
authored
Dec 18, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow acceptance test problem functions to work without hardcoded course name
parent
77942cec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/courseware/features/problems.py
+2
-2
lms/djangoapps/courseware/features/problems_setup.py
+0
-0
No files found.
lms/djangoapps/courseware/features/problems.py
View file @
a9a8dcf8
...
...
@@ -72,7 +72,7 @@ def input_problem_answer(_, problem_type, correctness):
"""
assert
(
correctness
in
[
'correct'
,
'incorrect'
])
assert
(
problem_type
in
PROBLEM_DICT
)
answer_problem
(
problem_type
,
correctness
)
answer_problem
(
world
.
scenario_dict
[
'COURSE'
]
.
number
,
problem_type
,
correctness
)
@step
(
u'I check a problem'
)
...
...
@@ -98,7 +98,7 @@ def assert_problem_has_answer(step, problem_type, answer_class):
'''
assert
answer_class
in
[
'correct'
,
'incorrect'
,
'blank'
]
assert
problem_type
in
PROBLEM_DICT
problem_has_answer
(
problem_type
,
answer_class
)
problem_has_answer
(
world
.
scenario_dict
[
'COURSE'
]
.
number
,
problem_type
,
answer_class
)
@step
(
u'I reset the problem'
)
...
...
lms/djangoapps/courseware/features/problems_setup.py
View file @
a9a8dcf8
This diff is collapsed.
Click to expand it.
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