Skip to content

Commit

Permalink
Merge pull request #713 from padix-key/database-update
Browse files Browse the repository at this point in the history
Adapt test to database update
  • Loading branch information
padix-key authored Dec 9, 2024
2 parents dce750d + 3fb0bf8 commit 05e40cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/database/test_rcsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def test_search_motif():
# motif is taken from official RCSB search API tutorial
MOTIF = "C-x(2,4)-C-x(3)-[LIVMFYWC]-x(8)-H-x(3,5)-H."
query = rcsb.MotifQuery(MOTIF, "prosite", "protein")
test_count = rcsb.count(query)
assert test_count == pytest.approx(639, rel=0.1)
test_count = rcsb.count(query, return_type="polymer_entity")
assert test_count == pytest.approx(719, rel=0.1)


@pytest.mark.skipif(cannot_connect_to(RCSB_URL), reason="RCSB PDB is not available")
Expand Down

0 comments on commit 05e40cb

Please sign in to comment.