From 7c801fe23c8bbbaa371e7f316898e59a2b5dcec4 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 3 Apr 2024 18:13:38 +0200 Subject: [PATCH] dependencies: make resolution test more flexible --- tests/test_dependencies.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_dependencies.py b/tests/test_dependencies.py index 2acbf9f48..ae18a41ae 100644 --- a/tests/test_dependencies.py +++ b/tests/test_dependencies.py @@ -49,12 +49,10 @@ def test_biocontainers(tmp_path: Path) -> None: def test_biocontainers_resolution(tmp_path: Path) -> None: """Confirm expected container name for --beta-use-biocontainers.""" tool = load_tool(get_data("tests/seqtk_seq.cwl"), LoadingContext()) - assert ( - get_container_from_software_requirements( - True, tool, container_image_cache_path=str(tmp_path) - ) - == "quay.io/biocontainers/seqtk:1.4--he4a0461_1" + container = get_container_from_software_requirements( + True, tool, container_image_cache_path=str(tmp_path) ) + assert container is not None and container.startswith("quay.io/biocontainers/seqtk:1.4--") @pytest.fixture(scope="session")