Skip to content

Commit

Permalink
Create a positive test for is_key_header (#1324)
Browse files Browse the repository at this point in the history
* Added a positive test for is_key_header

* integreted parameterization

---------

Co-authored-by: Dhanshree Arora <[email protected]>
  • Loading branch information
mercybassey and DhanshreeA authored Oct 17, 2024
1 parent b0b300e commit 1d5c8f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_compound_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ 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

0 comments on commit 1d5c8f6

Please sign in to comment.