Spaces:
Runtime error
Runtime error
Download services/api/tests/test_config.py from Oheha/cybully-api: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/services/api/tests/test_config.py
- Command line
-
hf download hf://spaces/Oheha/cybully-api/services/api/tests/test_config.py
-
curl -L -o test_config.py https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/services/api/tests/test_config.py
356 Bytes
| from pathlib import Path | |
| from app.core.config import default_env_files | |
| def test_default_env_files_include_repo_root_env() -> None: | |
| repo_root = Path(__file__).resolve().parents[3] | |
| env_files = {Path(path) for path in default_env_files()} | |
| assert repo_root.joinpath(".env") in env_files | |
| assert repo_root.joinpath(".env.local") in env_files | |