Download tests/test_engine.py from donizetti-yoann/technova-ml-api: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/donizetti-yoann/technova-ml-api/resolve/main/tests/test_engine.py
- Command line
-
hf download hf://spaces/donizetti-yoann/technova-ml-api/tests/test_engine.py
-
curl -L -o test_engine.py https://huggingface.co/spaces/donizetti-yoann/technova-ml-api/resolve/main/tests/test_engine.py
271 Bytes
| from app.db.engine import get_engine | |
| from app.core.config import get_settings | |
| def test_get_engine_without_database_url(monkeypatch): | |
| monkeypatch.delenv("DATABASE_URL", raising=False) | |
| get_settings.cache_clear() | |
| engine = get_engine() | |
| assert engine is None |