Skip to content

Commit

Permalink
pleased pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Nov 30, 2024
1 parent 0ffa578 commit 56c0dc2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/unit_tests/test_terminate_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 56c0dc2

Please sign in to comment.