Skip to content

Commit

Permalink
Create is_key_header negative test for test_compound_identifier.py (#…
Browse files Browse the repository at this point in the history
…1330)

Co-authored-by: Dhanshree Arora <[email protected]>
  • Loading branch information
Ajoke23 and DhanshreeA authored Oct 23, 2024
1 parent bdddfb2 commit e88559c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test_compound_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ def compound_identifier():
def test_is_input_header_positive(compound_identifier, header):
"""Test that valid input headers return True."""
assert compound_identifier.is_input_header(header) is True

@pytest.mark.parametrize("header", ["key", "inchiKey", "KEY", "INCHIKEY"])
def test_is_key_header_positive(compound_identifier, header):
"""Test that valid key headers return True."""
assert compound_identifier.is_key_header(header) is True
assert compound_identifier.is_key_header(header) is True

@pytest.mark.parametrize("header", ["id","smiles","inchi","input", "some_header", "random", "header", ""])
def test_is_key_header_negative(compound_identifier, header):
assert not compound_identifier.is_key_header(header)

0 comments on commit e88559c

Please sign in to comment.