fix: use fresh Settings() in test, add LDAP_SEARCH_BASE to .env.example

This commit is contained in:
Oliver Hofmann
2026-04-27 09:34:00 +02:00
parent 46bde689b5
commit f6587b813e
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
from app.core.config import get_settings
from app.core.config import Settings
def test_new_config_fields_have_defaults():
s = get_settings()
s = Settings()
assert hasattr(s, "SECRET_KEY")
assert hasattr(s, "LDAP_ENABLED")
assert s.LDAP_ENABLED is False