15 lines
396 B
Python
15 lines
396 B
Python
"""Test if settings load correctly and environment variables override defaults."""
|
|
|
|
from control_backend.core.config import Settings
|
|
|
|
|
|
def test_default_settings():
|
|
settings = Settings()
|
|
assert settings.app_title == "PepperPlus"
|
|
|
|
|
|
def test_env_override(monkeypatch):
|
|
monkeypatch.setenv("APP_TITLE", "TestPepper")
|
|
settings = Settings()
|
|
assert settings.app_title == "TestPepper"
|