From 0637bb826a66ecc2157c5ccd5cd72c2d416178d3 Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Sat, 4 Apr 2026 14:13:24 -0600 Subject: [PATCH] fix: remove stale load_dotenv patch from has_token test The test patched observe.transcribe.revai.load_dotenv but the module never imported load_dotenv. patch.dict with clear=True is sufficient. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/test_transcribe_noise_upgrade.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_transcribe_noise_upgrade.py b/tests/test_transcribe_noise_upgrade.py index 0196d3dd5..0c475f964 100644 --- a/tests/test_transcribe_noise_upgrade.py +++ b/tests/test_transcribe_noise_upgrade.py @@ -23,9 +23,7 @@ class TestHasToken: from observe.transcribe.revai import has_token with patch.dict("os.environ", {}, clear=True): - # Also need to patch dotenv to not load any .env file - with patch("observe.transcribe.revai.load_dotenv"): - assert has_token() is False + assert has_token() is False def test_has_token_with_alternate_env_var(self): """has_token() returns True with REV_ACCESS_TOKEN.""" -- 2.51.2