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
656a2b95
Commit
656a2b95
authored
Mar 09, 2015
by
Régis Behmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to fix flaky leaderboard test
parent
c9d7aa82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
openassessment/xblock/test/test_leaderboard.py
+7
-0
No files found.
openassessment/xblock/test/test_leaderboard.py
View file @
656a2b95
...
...
@@ -196,6 +196,11 @@ class TestLeaderboardRender(XBlockHandlerTransactionTestCase):
is a dictionary of with keys 'content' (the submission text)
and 'score' (the integer number of points earned)
"""
# We temporarily set the maxDiff attribute to infinite so that we can
# have a full diff
maxDiff
=
self
.
maxDiff
self
.
maxDiff
=
None
self
.
_assert_path_and_context
(
xblock
,
'openassessmentblock/leaderboard/oa_leaderboard_show.html'
,
...
...
@@ -206,6 +211,8 @@ class TestLeaderboardRender(XBlockHandlerTransactionTestCase):
workflow_status
=
'done'
)
self
.
maxDiff
=
maxDiff
def
_assert_path_and_context
(
self
,
xblock
,
expected_path
,
expected_context
,
workflow_status
=
None
):
"""
Render the leaderboard and verify:
...
...
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