Skip to content
Snippets Groups Projects
Commit bbe9d19c authored by Awais Qureshi's avatar Awais Qureshi
Browse files

BOM-1811

assert_has_calls() has different order of specified calls.
if any_order is true then the calls can be in any order,
but they must all appear in mock_calls.

https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_has_calls
parent 05b98cbb
Branches
Tags
No related merge requests found
......@@ -619,7 +619,7 @@ class CourseGradingTest(CourseTestCase):
'event_transaction_type': 'edx.grades.grading_policy_changed',
}
) for policy_hash in {grading_policy_1, grading_policy_2, grading_policy_3}
])
], any_order=True)
@mock.patch('track.event_transaction_utils.uuid4')
@mock.patch('models.settings.course_grading.tracker')
......
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