tests: correct use of has_calls -> assert_has_calls

Newer Python detect 'has_calls' as an incorrect use of assert_has_calls.

Correct the one instance of this in Octavia.

Change-Id: I5c943266332908e00c19b409e3af571680d55c26
This commit is contained in:
James Page 2024-01-23 14:30:54 +00:00
parent 5750e4512d
commit b1c930d41f
No known key found for this signature in database
GPG Key ID: BFECAECBA0E7D8C3

View File

@ -1424,7 +1424,7 @@ class TestDatabaseTasks(base.TestCase):
provisioning_status=constants.ERROR)
])
self.assertEqual(2, repo.HealthMonitorRepository.update.call_count)
repo.HealthMonitorRepository.update.has_calls(
repo.HealthMonitorRepository.update.assert_has_calls(
[mock.call(mock_session, health_monitor.id,
provisioning_status=constants.ERROR)])
self.assertEqual(1, repo.L7PolicyRepository.update.call_count)