Skip to content

Commit

Permalink
add test for no pulumi config
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Oct 29, 2024
1 parent 05b6962 commit 22d7f3b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/commands/test_shm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@ def test_teardown_user_cancelled(
result = runner.invoke(shm_command_group, ["teardown"], input="n")
assert result.exit_code == 0
assert "cancelled" in result.stdout

def test_teardown_no_pulumi_config(
self,
runner,
mock_azuresdk_get_subscription_name, # noqa: ARG002
mock_pulumi_config_from_remote_fails, # noqa: ARG002
mock_shm_config_from_remote, # noqa: ARG002
mock_imperative_shm_teardown_then_exit, # noqa: ARG002
):
result = runner.invoke(shm_command_group, ["teardown"], input="y")
assert result.exit_code == 1
assert "mock teardown" in result.stdout

0 comments on commit 22d7f3b

Please sign in to comment.