s/assertItemsEqual/assertCountEqual/g
assertItemsEqual was renamed to assertCountEqual in Python 3, and the testsuite is failing now - rename it. See also https://six.readthedocs.io/#six.assertCountEqual This unbreaks the testsuite. Change-Id: I910c7f2b3eae107a8d8022366f738b006cf4831a
This commit is contained in:
parent
e6f423604a
commit
9c19e28c21
@ -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",
|
||||
|
@ -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())
|
||||
|
||||
|
@ -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())
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user