Skip to content

Commit

Permalink
add test with incorrect parameters for runtime exception
Browse files Browse the repository at this point in the history
  • Loading branch information
adraismawur committed Jul 17, 2024
1 parent 6cc45d1 commit 4a288a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/genomics/test_runbigscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ def test_input_path_not_exist(tmp_path, version):
)

assert "antismash_path" in e.value.args[0]


@pytest.mark.parametrize("version", [1, 2])
def test_bad_parameters(tmp_path, version):
with pytest.raises(RuntimeError) as e:
bigscape.run_bigscape(
antismash_path=tmp_path,
output_path=tmp_path,
extra_params="--this-is-not-a-real-argument",
version=version,
)

assert "BiG-SCAPE" in e.value.args[0]

0 comments on commit 4a288a9

Please sign in to comment.