Spaces:
Paused
Paused
Download apps/api/tests/unit/conftest.py from mohammed978/teteffd: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/mohammed978/teteffd/resolve/main/apps/api/tests/unit/conftest.py
- Command line
-
hf download hf://spaces/mohammed978/teteffd/apps/api/tests/unit/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/mohammed978/teteffd/resolve/main/apps/api/tests/unit/conftest.py
410 Bytes
| """Unit test fixtures - no MongoDB or Redis needed.""" | |
| from __future__ import annotations | |
| import os | |
| import pytest | |
| def pytest_configure(config): | |
| """Set test env vars before any imports.""" | |
| os.environ.setdefault("APP_ENV", "test") | |
| os.environ.setdefault("JWT_SECRET", "test-jwt-secret-for-testing-only") | |
| os.environ.setdefault("ENCRYPTION_KEY", "test-encryption-key-000000000000000000000000") | |