Spaces:
Running
Running
Download tests/conftest.py from Success-dev/venthrive-api: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/Success-dev/venthrive-api/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Success-dev/venthrive-api/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Success-dev/venthrive-api/resolve/main/tests/conftest.py
537 Bytes
| # Runs before any test module is imported (pytest loads conftest.py first). | |
| # | |
| # routes/bff.py imports utils/groq_client.py at module level, which raises | |
| # RuntimeError at import time if no GROQ_API_KEY* env var is set (see its own | |
| # docstring). Tests here only exercise pure functions (_stage_guidance, | |
| # BUSINESS_STAGES) that never make a real Groq call, so a fake key is enough | |
| # to get past import — never make a real network call using this value. | |
| import os | |
| os.environ.setdefault("GROQ_API_KEY", "test-key-not-a-real-credential") | |