From 05b6962dd40e525fce487d223f580f3335f469b0 Mon Sep 17 00:00:00 2001 From: Matt Craddock <5796417+craddm@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:10:14 +0000 Subject: [PATCH] add remote_fails pulumi config fixture --- tests/commands/conftest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/commands/conftest.py b/tests/commands/conftest.py index dc6811ff9f..15f47ba987 100644 --- a/tests/commands/conftest.py +++ b/tests/commands/conftest.py @@ -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(