Skip to content

Autonomous AI sales agent powered by Claude Code or Codex. Finds prospects, writes cold emails, sends campaigns, handles replies, books meetings. No API keys needed — runs on your Claude or Codex subscriptions.

test: keep a developer's real .env out of test_load_env_reads_environment (#22)

Nik Edmiidze5fdffd5601f
diff --git a/tests/test_config_extra.py b/tests/test_config_extra.py
index a20bfb7..ff670fe 100644
--- a/tests/test_config_extra.py
+++ b/tests/test_config_extra.py
@@ -160,6 +160,8 @@ def test_offer_override():
def test_load_env_reads_environment(monkeypatch):
+ # Don't read a developer's real .env — its keys would leak into the test.
+ monkeypatch.setattr("harvey.config.load_dotenv", lambda *a, **k: False)
monkeypatch.setenv("INSTANTLY_API_KEY", "key-123")
monkeypatch.setenv("SERPER_API_KEY", " serp-456 ")
monkeypatch.delenv("HUNTER_API_KEY", raising=False)