Skip to content

Commit c5c99f7

Browse files
committed
test(config): inject encryption-policy driver port
1 parent 495f6b1 commit c5c99f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_secret_store_encryption_policy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def connect(self, _dsn: str) -> _Connection:
3333
return self.connection
3434

3535

36-
def test_encryption_required_without_key_fails_before_database_access(monkeypatch) -> None:
36+
def test_encryption_required_without_key_fails_before_database_access() -> None:
3737
"""An encryption-required deployment cannot silently select Base64 storage."""
3838
fake_psycopg = _Psycopg()
39-
monkeypatch.setattr(config_mod, "psycopg", fake_psycopg)
4039

4140
with pytest.raises(ConfigError, match="encryption"):
4241
config_mod.SecretStore(
4342
"postgresql://database",
4443
require_encryption=True,
44+
postgres_driver=fake_psycopg,
4545
)
4646

4747
assert fake_psycopg.connect_calls == 0

0 commit comments

Comments
 (0)