Skip to content

Commit

Permalink
fix new unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Sep 30, 2023
1 parent f86f275 commit b6a9748
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/jcsda-emc/spack-stack/tests/test_stack_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ def test_modulesys():
"env",
"--site",
"hera",
"--name",
"modulesys_test",
"--dir",
test_dir,
"--overwrite",
"--modulesys",
modulesys,
)
modules_yaml_path = os.path.join(test_dir, "common", "modules.yaml")
modules_yaml_path = os.path.join(test_dir, "modulesys_test", "common", "modules.yaml")
with open(modules_yaml_path, "r") as f:
modules_yaml_txt = f.read()
assert "%s:" % modulesys in modules_yaml_txt
Expand All @@ -110,13 +112,15 @@ def test_upstream():
"env",
"--site",
"hera",
"--name",
"upstream_test",
"--dir",
test_dir,
"--overwrite",
"--upstream",
"/test/path/to/upstream/env",
)
spack_yaml_path = os.path.join(test_dir, "spack.yaml")
spack_yaml_path = os.path.join(test_dir, "upstream_test", "spack.yaml")
with open(spack_yaml_path, "r") as f:
spack_yaml_txt = f.read()
assert "install_tree: /test/path/to/upstream/env" in spack_yaml_txt

0 comments on commit b6a9748

Please sign in to comment.