From 34eb37e2130ddf4703f343f0ccc9bcc38d2102b8 Mon Sep 17 00:00:00 2001 From: Avery Kiihne Date: Thu, 31 Oct 2024 16:07:52 -0400 Subject: [PATCH] functional checkout tests #222 --- fre/make/tests/null_example/test_checkout_null_yaml.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fre/make/tests/null_example/test_checkout_null_yaml.py b/fre/make/tests/null_example/test_checkout_null_yaml.py index 025344f8..ff6d12aa 100644 --- a/fre/make/tests/null_example/test_checkout_null_yaml.py +++ b/fre/make/tests/null_example/test_checkout_null_yaml.py @@ -10,7 +10,7 @@ # Set example yaml paths, input directory CWD = Path.cwd() test_dir = Path("fre/make/tests/null_example") -yamlfile = Path("{test_dir}/null_model.yaml") +yamlfile = Path(f"{test_dir}/null_model.yaml") #set platform and target platform = "ncrc5.intel" @@ -32,7 +32,8 @@ def test_checkout_script_exists(): """ result = runner.invoke(fre.fre, args=["make","create-checkout","-y",yamlfile,"-p",platform,"-t",target]) #createCheckout.checkout_create(["null_model.yaml","ncrc5.intel","debug"]) - assert Path(f"{out_dir}/checkout.sh").exists() + assert result.exit_code == 0 + assert Path(f"{out_dir}/fremake_canopy/test/null_model_full/src/checkout.sh").exists() def test_checkout_execute(): """