From 420aff153cb2ec677ee59a4c689e010a8a4e606d Mon Sep 17 00:00:00 2001 From: Adebisi Adeyemi <84504391+adebisi4145@users.noreply.github.com> Date: Fri, 18 Oct 2024 06:52:49 +0000 Subject: [PATCH] add positive test for the _is_inchikey method in CompoundIdentifier class --- test/test_compound_identifier.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test_compound_identifier.py b/test/test_compound_identifier.py index 1fd696fae..e16ed515e 100644 --- a/test/test_compound_identifier.py +++ b/test/test_compound_identifier.py @@ -13,4 +13,13 @@ def test_is_input_header_positive(compound_identifier, header): @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 \ No newline at end of file + assert compound_identifier.is_key_header(header) is True + +@pytest.mark.parametrize("inchikey", [ + "BSYNRYMUTXBXSQ-UHFFFAOYSA-N", + "BQJCRHHNABKAKU-KBQPJGBKSA-N", + "ZJPODVODJYKFHM-UHFFFAOYSA-N" +]) +def test_is_inchikey_positive(compound_identifier, inchikey): + """Test that valid InChIKeys return True.""" + assert compound_identifier._is_inchikey(inchikey) is True \ No newline at end of file