Spaces:
Paused
Paused
Download Browser_Agent/tests/test_settings.py from Luca448/APP-Backend: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/Luca448/APP-Backend/resolve/main/Browser_Agent/tests/test_settings.py
- Command line
-
hf download hf://spaces/Luca448/APP-Backend/Browser_Agent/tests/test_settings.py
-
curl -L -o test_settings.py https://huggingface.co/spaces/Luca448/APP-Backend/resolve/main/Browser_Agent/tests/test_settings.py
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 | |