Skip to content

Commit

Permalink
Update test_checkout_null_yaml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kiihne-noaa authored Jan 14, 2025
1 parent 69896af commit da09b07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fre/make/tests/null_example/test_checkout_null_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
# Set home for ~/cylc-src location in script
#os.environ["HOME"]=str(Path(f"{out_dir}"))
#run checkout command
OUT = f"{TEST_DIR}/checkout_out"
OUT = f"{TEST_DIR}/configure_yaml_out"
os.environ["TEST_BUILD_DIR"] = OUT

def test_checkout_script_exists():
"""
Make sure checkout file exists
"""
result = create_checkout_script.checkout_create(YAMLFILE,PLATFORM,TARGET,False,False, False, False)
print(create_checkout_script.checkout_create(YAMLFILE,PLATFORM,TARGET,False,False, False, False))
print(f"asserting this path: {OUT}/fremake_canopy/test/null_model_full/src/checkout.sh")
#assert result.exit_code == 0
assert Path(f"{def_home}/fremake_canopy/test/null_model_full/src/checkout.sh").exists()
assert Path(f"{OUT}/fremake_canopy/test/null_model_full/src/checkout.sh").exists()

def test_checkout_execute():
"""
Expand Down

0 comments on commit da09b07

Please sign in to comment.