From acff7200345ce539fe4944d9a49adfb7a77d8597 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Sat, 7 Sep 2024 15:16:23 -0400 Subject: [PATCH] test: ignore existing NCBI_API_KEY env var --- tests/test_seqfetcher.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_seqfetcher.py b/tests/test_seqfetcher.py index 27cdfbc..68efc9c 100644 --- a/tests/test_seqfetcher.py +++ b/tests/test_seqfetcher.py @@ -11,6 +11,12 @@ fetch_seq, ) +@pytest.fixture(autouse=True) +def clear_env(): + if "NCBI_API_KEY" in os.environ: + del os.environ["NCBI_API_KEY"] + + @vcr.use_cassette def test_fetch_seq():