Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CompoundIdentifier class is_input_header negative test #1328

Merged
merged 14 commits into from
Nov 18, 2024
Merged
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/test_compound_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ 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", ["output", "invalid", "InChI", "inchikey"])
def test_is_input_header_negative(compound_identifier, header):
"""Test that invalid input headers return False."""
assert compound_identifier.is_input_header(header) is False

@pytest.mark.parametrize("header", ["key", "inchiKey", "KEY", "INCHIKEY"])
DhanshreeA marked this conversation as resolved.
Show resolved Hide resolved
def test_is_key_header_positive(compound_identifier, header):
"""Test that valid key headers return True."""
Expand Down