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
242b3736
Commit
242b3736
authored
Jun 09, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8429 from edx/benp/fix-flaky-lms-answer-jun2015
Fix flaky lettuce test. TE-572.
parents
7d338922
e54ce295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/courseware/features/problems.py
+2
-0
No files found.
lms/djangoapps/courseware/features/problems.py
View file @
242b3736
...
@@ -172,8 +172,10 @@ def assert_answer_mark(_step, problem_type, isnt_marked, correctness):
...
@@ -172,8 +172,10 @@ def assert_answer_mark(_step, problem_type, isnt_marked, correctness):
# At least one of the correct selectors should be present
# At least one of the correct selectors should be present
for
sel
in
PROBLEM_DICT
[
problem_type
][
correctness
]:
for
sel
in
PROBLEM_DICT
[
problem_type
][
correctness
]:
if
bool
(
isnt_marked
):
if
bool
(
isnt_marked
):
world
.
wait_for
(
lambda
_
:
world
.
is_css_not_present
(
sel
))
# pylint: disable=cell-var-from-loop
has_expected
=
world
.
is_css_not_present
(
sel
)
has_expected
=
world
.
is_css_not_present
(
sel
)
else
:
else
:
world
.
css_find
(
sel
)
# css_find includes a wait_for pattern
has_expected
=
world
.
is_css_present
(
sel
)
has_expected
=
world
.
is_css_present
(
sel
)
# As soon as we find the selector, break out of the loop
# As soon as we find the selector, break out of the loop
...
...
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