Spaces:
Running
Running
Download tests/conftest.py from Rthur2003/crowncode-backend: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/Rthur2003/crowncode-backend/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Rthur2003/crowncode-backend/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Rthur2003/crowncode-backend/resolve/main/tests/conftest.py
318 Bytes
| """Shared test fixtures for CrownCode backend tests.""" | |
| from __future__ import annotations | |
| import pytest | |
| from starlette.testclient import TestClient | |
| from app.main import app | |
| def client(): | |
| """Create a test client for the FastAPI application.""" | |
| with TestClient(app) as c: | |
| yield c | |