Skip to content

Commit

Permalink
add whitespace-only taxon parameter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Nov 18, 2021
1 parent 31fd72e commit aa3ad11
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def test_locustag_failiing(parameters, tmpdir):
'parameters',
[
(['--genus']), # not provided
(['--genus', '']) # empty
(['--genus', '']), # empty
(['--genus', ' ']), # whitespace only
(['--genus', ' ']) # whitespaces only
]
)
def test_genus_failiing(parameters, tmpdir):
Expand All @@ -235,7 +237,9 @@ def test_genus_failiing(parameters, tmpdir):
'parameters',
[
(['--species']), # not provided
(['--species', '']) # empty
(['--species', '']), # empty
(['--species', ' ']), # whitespace only
(['--species', ' ']) # whitespaces only
]
)
def test_species_failiing(parameters, tmpdir):
Expand All @@ -248,7 +252,9 @@ def test_species_failiing(parameters, tmpdir):
'parameters',
[
(['--strain']), # not provided
(['--strain', '']) # empty
(['--strain', '']), # empty
(['--strain', ' ']), # whitespace only
(['--strain', ' ']) # whitespaces only
]
)
def test_strain_failiing(parameters, tmpdir):
Expand Down

0 comments on commit aa3ad11

Please sign in to comment.