Skip to content
Prev Previous commit
Next Next commit
tests(workspacebuilder): Remove unused formatting
  • Loading branch information
tony committed Mar 13, 2022
commit 38c5179ad782653f982263ce2cce13fe9f2129d9
7 changes: 1 addition & 6 deletions tests/test_workspacebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ def test_before_load_throw_error_if_retcode_error(server):
config_script_fails = load_fixture("workspacebuilder/config_script_fails.yaml")
sconfig = kaptan.Kaptan(handler="yaml")
yaml = config_script_fails.format(
fixtures_dir=FIXTURES_PATH,
script_failed=FIXTURES_PATH / "script_failed.sh",
)

Expand All @@ -615,7 +614,6 @@ def test_before_load_throw_error_if_file_not_exists(server):
)
sconfig = kaptan.Kaptan(handler="yaml")
yaml = config_script_not_exists.format(
fixtures_dir=FIXTURES_PATH,
script_not_exists=FIXTURES_PATH / "script_not_exists.sh",
)
sconfig = sconfig.import_config(yaml).get()
Expand Down Expand Up @@ -643,7 +641,6 @@ def test_before_load_true_if_test_passes(server):
assert script_complete_sh.exists()
sconfig = kaptan.Kaptan(handler="yaml")
yaml = config_script_completes.format(
fixtures_dir=FIXTURES_PATH,
script_complete=script_complete_sh,
)

Expand All @@ -664,9 +661,7 @@ def test_before_load_true_if_test_passes_with_args(server):
script_complete_sh = FIXTURES_PATH / "script_complete.sh"
assert script_complete_sh.exists()
sconfig = kaptan.Kaptan(handler="yaml")
yaml = config_script_completes.format(
fixtures_dir=FIXTURES_PATH, script_complete=script_complete_sh
)
yaml = config_script_completes.format(script_complete=script_complete_sh)

sconfig = sconfig.import_config(yaml).get()
sconfig = config.expand(sconfig)
Expand Down