Spaces:
Running
Running
| """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 | |