Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions test/BowTieBuilder/test_btb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import shutil
import sys
from pathlib import Path

Expand Down Expand Up @@ -306,3 +307,14 @@ def test_weight_one(self):

# Check if the sets are equal, regardless of the order of lines
assert output_content == expected_content, 'Output file does not match expected output file'

# Only run Singularity test if the binary is available on the system
# spython is only available on Unix, but do not explicitly skip non-Unix platforms
@pytest.mark.skipif(not shutil.which('singularity'), reason='Singularity not found on system')
def test_btb_singularity(self):
OUT_FILE_DEFAULT.unlink(missing_ok=True)
BTB.run(edges=Path(TEST_DIR, 'input', 'source-to-source-edges.txt'),
sources=Path(TEST_DIR, 'input', 'btb-sources.txt'),
targets=Path(TEST_DIR, 'input', 'btb-targets.txt'),
output_file=OUT_FILE_DEFAULT,
container_framework="singularity")
Loading