diff --git a/mistraldashboard/executions/tests.py b/mistraldashboard/executions/tests.py index 7a18b5c..462cbd8 100644 --- a/mistraldashboard/executions/tests.py +++ b/mistraldashboard/executions/tests.py @@ -30,7 +30,7 @@ class ExecutionsTest(test.TestCase): [self.mistralclient_executions.list(), False, False] res = self.client.get(INDEX_URL) self.assertTemplateUsed(res, 'mistral/executions/index.html') - self.assertItemsEqual(res.context['table'].data, + self.assertCountEqual(res.context['table'].data, self.mistralclient_executions.list()) self.mock_pagination_list.assert_called_once_with( entity="executions", diff --git a/mistraldashboard/tasks/tests.py b/mistraldashboard/tasks/tests.py index a727d9f..11ca15e 100644 --- a/mistraldashboard/tasks/tests.py +++ b/mistraldashboard/tasks/tests.py @@ -31,7 +31,7 @@ class TasksTest(test.TestCase): res = self.client.get(INDEX_URL) self.assertTemplateUsed(res, 'mistral/tasks/index.html') - self.assertItemsEqual(res.context['table'].data, + self.assertCountEqual(res.context['table'].data, self.mistralclient_tasks.list()) self.mock_task_list.assert_called_once_with(helpers.IsHttpRequest()) diff --git a/mistraldashboard/workbooks/tests.py b/mistraldashboard/workbooks/tests.py index 4d8d316..697abbc 100644 --- a/mistraldashboard/workbooks/tests.py +++ b/mistraldashboard/workbooks/tests.py @@ -33,7 +33,7 @@ class WorkflowsTest(test.TestCase): res = self.client.get(INDEX_URL) self.assertTemplateUsed(res, 'mistral/workbooks/index.html') - self.assertItemsEqual(res.context['table'].data, + self.assertCountEqual(res.context['table'].data, self.mistralclient_workbooks.list()) self.mock_workbook_list.\ assert_called_once_with(helpers.IsHttpRequest()) diff --git a/mistraldashboard/workflows/tests.py b/mistraldashboard/workflows/tests.py index 840b655..687c8ea 100644 --- a/mistraldashboard/workflows/tests.py +++ b/mistraldashboard/workflows/tests.py @@ -33,7 +33,7 @@ class WorkflowsTest(test.TestCase): res = self.client.get(INDEX_URL) self.assertTemplateUsed(res, 'mistral/workflows/index.html') - self.assertItemsEqual(res.context['table'].data, + self.assertCountEqual(res.context['table'].data, self.mistralclient_workflows.list()) self.mock_workflow_list.assert_called_once_with( helpers.IsHttpRequest())