summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2022-09-19 18:07:39 +0900
committerTakashi Natsume <takanattie@gmail.com>2022-09-19 18:09:56 +0900
commit995a81d305e0e3819bb768666399b662d2bbc724 (patch)
tree392de0226282db64875fd94812cae2fc326ec7bf
parent4d3a391467d5fef83f55b10a7879d23dfeb2fec9 (diff)
downloadoslo-db-995a81d305e0e3819bb768666399b662d2bbc724.tar.gz
Fix misuse of assert_has_calls
The 'assert_has_calls' is a method, not a variable. Change-Id: I6aea978b8fc9adf4a062c149c84d6562f5adec04 Closes-Bug: 1989280 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
-rw-r--r--oslo_db/tests/sqlalchemy/test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_db/tests/sqlalchemy/test_utils.py b/oslo_db/tests/sqlalchemy/test_utils.py
index 50973fa..f519a1f 100644
--- a/oslo_db/tests/sqlalchemy/test_utils.py
+++ b/oslo_db/tests/sqlalchemy/test_utils.py
@@ -476,14 +476,14 @@ class TestPaginateQuery(test_base.BaseTestCase):
mock.call('desc_null_3'),
mock.call(self.model.project_id),
])
- self.query.order_by.assert_has_calls = [
+ self.query.order_by.assert_has_calls([
mock.call('asc_null_2'),
mock.call('asc_1'),
mock.call('desc_null_2'),
mock.call('desc_1'),
mock.call('desc_null_4'),
mock.call('desc_4'),
- ]
+ ])
mock_or.assert_has_calls([
mock.call(mock.ANY, 'asc_null_filter_2'),
mock.call(mock.ANY, 'desc_null_filter_3'),