Skip to content

Commit

Permalink
update tests to handle new SRE name style
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Nov 11, 2024
1 parent 000e4f9 commit 7c099d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/commands/test_config_sre.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class TestUploadSRE:
def test_upload_new(
self, mocker, context, runner, sre_config_yaml, sre_config_file
):
sre_name = "SandBox"
sre_name = "sandbox"
sre_filename = sre_config_name(sre_name)
mock_exists = mocker.patch.object(
SREConfig, "remote_exists", return_value=False
Expand All @@ -191,7 +191,7 @@ def test_upload_new(
def test_upload_no_changes(
self, mocker, context, runner, sre_config, sre_config_file
):
sre_name = "SandBox"
sre_name = "sandbox"
sre_filename = sre_config_name(sre_name)
mock_exists = mocker.patch.object(SREConfig, "remote_exists", return_value=True)
mock_from_remote = mocker.patch.object(
Expand Down Expand Up @@ -247,9 +247,9 @@ def test_upload_changes(
assert "+++ local" in result.stdout

def test_upload_changes_n(
self, mocker, context, runner, sre_config_alternate, sre_config_file
self, mocker, context, runner, sre_config, sre_config_alternate, sre_config_file
):
sre_name = "SandBox"
sre_name = "sandbox"
sre_filename = sre_config_name(sre_name)
mock_exists = mocker.patch.object(SREConfig, "remote_exists", return_value=True)
mock_from_remote = mocker.patch.object(
Expand Down Expand Up @@ -285,9 +285,9 @@ def test_upload_file_does_not_exist(self, mocker, runner):
assert "Configuration file 'fake_config.yaml' not found." in result.stdout

def test_upload_invalid_config(
self, mocker, runner, context, sre_config_file, sre_config_yaml
self, mocker, runner, context, sre_config, sre_config_file, sre_config_yaml
):
sre_name = "SandBox"
sre_name = "sandbox"
sre_filename = sre_config_name(sre_name)

mock_exists = mocker.patch.object(SREConfig, "remote_exists", return_value=True)
Expand All @@ -310,7 +310,7 @@ def test_upload_invalid_config(
def test_upload_invalid_config_force(
self, mocker, runner, context, sre_config_file, sre_config_yaml
):
sre_name = "SandBox"
sre_name = "sandbox"
sre_filename = sre_config_name(sre_name)

mocker.patch.object(
Expand Down

0 comments on commit 7c099d5

Please sign in to comment.