Skip to content

Commit

Permalink
add remote_fails pulumi config fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Oct 29, 2024
1 parent f65b9bc commit 05b6962
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ def mock_pulumi_config_from_remote(mocker, pulumi_config):
mocker.patch.object(DSHPulumiConfig, "from_remote", return_value=pulumi_config)


@fixture
def mock_pulumi_config_from_remote_fails(mocker):
mocker.patch.object(
DSHPulumiConfig,
"from_remote",
return_value=DataSafeHavenAzureError("mock from_remote failure"),
)


@fixture
def mock_pulumi_config_from_remote_or_create(mocker, pulumi_config_empty):
mocker.patch.object(
Expand Down

0 comments on commit 05b6962

Please sign in to comment.