Commit 14067396 by bmedx

Fix list ordering issue causing flaky tests

parent 979c7cd1
...@@ -187,7 +187,7 @@ class TestGetProgramsWithType(TestCase): ...@@ -187,7 +187,7 @@ class TestGetProgramsWithType(TestCase):
mock_get_program_types.return_value = program_types mock_get_program_types.return_value = program_types
actual = get_programs_with_type(self.site) actual = get_programs_with_type(self.site)
self.assertEqual(actual, programs_with_program_type) self.assertItemsEqual(actual, programs_with_program_type)
@ddt.data(False, True) @ddt.data(False, True)
@mock.patch(UTILS_MODULE + '.get_programs') @mock.patch(UTILS_MODULE + '.get_programs')
...@@ -213,7 +213,7 @@ class TestGetProgramsWithType(TestCase): ...@@ -213,7 +213,7 @@ class TestGetProgramsWithType(TestCase):
mock_get_program_types.return_value = program_types mock_get_program_types.return_value = program_types
actual = get_programs_with_type(self.site, include_hidden=include_hidden) actual = get_programs_with_type(self.site, include_hidden=include_hidden)
self.assertEqual(actual, programs_with_program_type) self.assertItemsEqual(actual, programs_with_program_type)
@mock.patch(UTILS_MODULE + '.get_edx_api_data') @mock.patch(UTILS_MODULE + '.get_edx_api_data')
......
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