From 56c0dc2333cd56b86ea2af0483b6c14aa0d666db Mon Sep 17 00:00:00 2001 From: XaverStiensmeier Date: Sat, 30 Nov 2024 15:46:16 +0100 Subject: [PATCH] pleased pylint --- tests/unit_tests/test_terminate_cluster.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests/test_terminate_cluster.py b/tests/unit_tests/test_terminate_cluster.py index 6a045934..581e6367 100644 --- a/tests/unit_tests/test_terminate_cluster.py +++ b/tests/unit_tests/test_terminate_cluster.py @@ -33,10 +33,13 @@ def test_terminate(self, mock_output, mock_local): terminate.terminate(str(cluster_id), [provider], startup.LOG, False, True) provider.delete_server.assert_called_with(21) provider.delete_keypair.assert_called_with(create.KEY_NAME.format(cluster_id=cluster_id)) - mock_output.assert_called_with([provider.delete_server.return_value], [provider.delete_keypair.return_value], - [provider.delete_security_group.return_value], [[True]], - provider.delete_application_credentials.return_value, str(cluster_id), - startup.LOG) + mock_output.assert_called_with(cluster_server_state=[provider.delete_server.return_value], + cluster_keypair_state=[provider.delete_keypair.return_value], + cluster_security_group_state=[provider.delete_security_group.return_value], + cluster_volume_state=[[True]], + ac_state=provider.delete_application_credentials.return_value, + cluster_id=str(cluster_id), + log=startup.LOG) @patch("bibigrid.core.actions.terminate.delete_local_keypairs") @patch("logging.info")