Skip to content

Commit

Permalink
Ignore expected call order in cohorts test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveagent57 committed May 3, 2019
1 parent 3cd57bd commit a3ac84f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openedx/core/djangoapps/course_groups/tests/test_cohorts.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def assert_events(event_name_suffix, user_list, cohort_list):
"""
Confirms the presence of the specifed event for each user in the specified list of cohorts
"""
mock_tracker.emit.assert_has_calls([
expected_calls = [
call(
"edx.cohort.user_" + event_name_suffix,
{
Expand All @@ -87,7 +87,8 @@ def assert_events(event_name_suffix, user_list, cohort_list):
}
)
for user in user_list for cohort in cohort_list
])
]
mock_tracker.emit.assert_has_calls(expected_calls, any_order=True)

# Add users to cohort
cohort_list[0].users.add(*user_list)
Expand Down

0 comments on commit a3ac84f

Please sign in to comment.