APP-Backend / Browser_Agent /tests /test_settings.py
Luca448's picture
Savestate: Fix Dockerfile and add Browser_Agent for HF build, bump version to 1.8.334
508316a
Raw History Blame Contribute Delete
481 Bytes
from config.settings import Settings
def test_empty_telegram_user_id_disables_integration(monkeypatch, tmp_path):
monkeypatch.setenv("TELEGRAM_ALLOWED_USER_ID", "")
monkeypatch.setenv("JAIL_ROOT", str(tmp_path / "workspace"))
monkeypatch.setenv("DOWNLOADS_DIR", str(tmp_path / "workspace" / "downloads"))
monkeypatch.setenv("SESSION_DIR", str(tmp_path / "sessions"))
configured = Settings(_env_file=None)
assert configured.telegram_allowed_user_id == 0