Skip to content

Commit

Permalink
Update tests to current Pubchem version (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key authored Sep 9, 2023
1 parent 67d8016 commit af815d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/biotite/database/pubchem/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class NameQuery(Query):
--------
>>> print(search(NameQuery("Alanine")))
[5950]
[5950, 602, 71080]
"""

def __init__(self, name):
Expand Down Expand Up @@ -801,7 +801,7 @@ def search(query, throttle_threshold=0.5, return_throttle_status=False):
--------
>>> print(search(NameQuery("Alanine")))
[5950]
[5950, 602, 71080]
"""
# Use POST to be compatible with the larger payloads
# of structure searches
Expand Down
2 changes: 1 addition & 1 deletion tests/database/test_pubchem.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_fetch_invalid():
@pytest.mark.parametrize(
"query, ref_ids",
[
(pubchem.NameQuery("Alanine"), [5950]),
(pubchem.NameQuery("Alanine"), [71080, 602, 5950]),
(pubchem.SmilesQuery("CCCC"), [7843]),
(pubchem.InchiQuery("InChI=1S/C4H10/c1-3-4-2/h3-4H2,1-2H3"), [7843]),
(pubchem.InchiKeyQuery("IJDNQMDRQITEOD-UHFFFAOYSA-N"), [7843]),
Expand Down

0 comments on commit af815d1

Please sign in to comment.