fix: use fresh Settings() in test, add LDAP_SEARCH_BASE to .env.example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user