Skip to content

Commit 76b2fbd

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix invalid assert_has_calls"
2 parents 90777d7 + 8cb9b84 commit 76b2fbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nova/tests/unit/compute/test_compute_mgr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10030,9 +10030,9 @@ def test_remove_remote_volume_connections(self, mock_remove_vol_conn):
1003010030

1003110031
self.compute._remove_remote_volume_connections(self.context, 'fake',
1003210032
bdms, instance)
10033-
mock_remove_vol_conn.assert_has_calls = [
10033+
mock_remove_vol_conn.assert_has_calls([
1003410034
mock.call(self.context, instance, bdm.volume_id, 'fake') for
10035-
bdm in bdms]
10035+
bdm in bdms])
1003610036

1003710037
@mock.patch('nova.compute.rpcapi.ComputeAPI.remove_volume_connection')
1003810038
def test_remove_remote_volume_connections_exc(self, mock_remove_vol_conn):
@@ -10059,9 +10059,9 @@ def test_rollback_volume_bdms(self, mock_delete_attachment):
1005910059
original_bdms, instance)
1006010060

1006110061
# Assert that we delete the current attachments
10062-
mock_delete_attachment.assert_has_calls = [
10062+
mock_delete_attachment.assert_has_calls([
1006310063
mock.call(self.context, uuids.vol1_attach),
10064-
mock.call(self.context, uuids.vol2_attach)]
10064+
mock.call(self.context, uuids.vol2_attach)])
1006510065
# Assert that we switch the attachment ids and connection_info for each
1006610066
# bdm back to their original values
1006710067
self.assertEqual(uuids.vol1_attach_original,

0 commit comments

Comments
 (0)