From 734e565d70d2e77e7e409ee676ebe530f75a30c1 Mon Sep 17 00:00:00 2001 From: Dom Heinzeller Date: Tue, 3 Oct 2023 09:14:21 -0600 Subject: [PATCH] Update unit tests for creating containers --- lib/jcsda-emc/spack-stack/tests/test_stack_create.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/jcsda-emc/spack-stack/tests/test_stack_create.py b/lib/jcsda-emc/spack-stack/tests/test_stack_create.py index 71e5678f67c3dc..41d3155f9fb749 100644 --- a/lib/jcsda-emc/spack-stack/tests/test_stack_create.py +++ b/lib/jcsda-emc/spack-stack/tests/test_stack_create.py @@ -71,9 +71,11 @@ def test_sites(site): @pytest.mark.extension("stack") @pytest.mark.parametrize("container", all_containers()) -@pytest.mark.filterwarnings("ignore::UserWarning") +@pytest.mark.parametrize("spec", all_specs()) +#@pytest.mark.filterwarnings("ignore::UserWarning") def test_containers(container): - if not container: + if not container or not spec: return container_wo_ext = os.path.splitext(container)[0] - stack_create("create", "ctr", container_wo_ext, "--dir", test_dir, "--overwrite") + spec_wo_ext = os.path.splitext(spec)[0] + stack_create("create", "ctr", "--container", container_wo_ext, "--spec", spec_wo_ext, "--dir", test_dir, "--overwrite")