Commit 656a2b95 by Régis Behmo

Trying to fix flaky leaderboard test

parent c9d7aa82
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment