Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def test_provisioning_noop_when_disabled(monkeypatch):


def test_api_key_store_in_memory_without_db(monkeypatch):
# The process singleton was built at import time (no DB) → in-memory.
assert isinstance(api_keys.api_key_store, api_keys.ApiKeyStore)
# Builder choice follows the env at call time. The process singleton may
# already be Postgres if this file ran in a job that set DATABASE_URL.
monkeypatch.delenv("NETLOGIC_DATABASE_URL", raising=False)
assert isinstance(api_keys._build_api_key_store(), api_keys.ApiKeyStore)

Expand Down
Loading