Skip to content

Commit

Permalink
add sliding window parameter tests #24
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Jan 14, 2022
1 parent ff13c07 commit fa2cd7c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,24 @@ def test_cdna_failing(arguments, tmpdir):
# test cDNA arguments
cmd_line = ['bin/referenceseeker', '--conserved-dna'] + arguments + ['test/db', 'test/data/Salmonella_enterica_CFSAN000189.fasta']
proc = run(cmd_line)
assert proc.returncode != 0


@pytest.mark.parametrize(
'arguments',
[
([]), # not provided
(['']), # empty
(['foo']), # not integer
(['-1']), # smaller than zero
(['0']), # zero
(['1.1']) # float
(['99']), # smaller than min (100)
(['1001']) # larger than max (1000)
]
)
def test_sliding_window_failing(arguments, tmpdir):
# test sliding_window arguments
cmd_line = ['bin/referenceseeker', '--sliding-window'] + arguments + ['test/db', 'test/data/Salmonella_enterica_CFSAN000189.fasta']
proc = run(cmd_line)
assert proc.returncode != 0

0 comments on commit fa2cd7c

Please sign in to comment.