Skip to content

Commit e5d9fe6

Browse files
committed
dependencies: make resolution test more flexible
1 parent 054acd0 commit e5d9fe6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_dependencies.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ def test_biocontainers(tmp_path: Path) -> None:
4949
def test_biocontainers_resolution(tmp_path: Path) -> None:
5050
"""Confirm expected container name for --beta-use-biocontainers."""
5151
tool = load_tool(get_data("tests/seqtk_seq.cwl"), LoadingContext())
52-
assert (
53-
get_container_from_software_requirements(
54-
True, tool, container_image_cache_path=str(tmp_path)
55-
)
56-
== "quay.io/biocontainers/seqtk:1.4--he4a0461_1"
52+
container = get_container_from_software_requirements(
53+
True, tool, container_image_cache_path=str(tmp_path)
5754
)
55+
assert container is not None and container.startswith("quay.io/biocontainers/seqtk:1.4--")
5856

5957

6058
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)