Skip to content

Commit

Permalink
explain
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Sep 7, 2024
1 parent acff720 commit 6d0bcdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_seqfetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

@pytest.fixture(autouse=True)
def clear_env():
"""Some tests in this module assume that the default utils access configs are
active. If you execute tests in an environment with an existing `NCBI_API_KEY` env
var, those tests will fail unless we first remove that variable.
"""
if "NCBI_API_KEY" in os.environ:
del os.environ["NCBI_API_KEY"]

Expand Down

0 comments on commit 6d0bcdd

Please sign in to comment.