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:
parent
5750e4512d
commit
b1c930d41f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user