Skip to content

Commit

Permalink
dependencies: make resolution test more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Apr 3, 2024
1 parent 0e06938 commit 7c801fe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7c801fe

Please sign in to comment.