Spaces:
Sleeping
Sleeping
Download tests/conftest.py from pardeep-singh/reading-list: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/pardeep-singh/reading-list/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/pardeep-singh/reading-list/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/pardeep-singh/reading-list/resolve/main/tests/conftest.py
248 Bytes
| import pytest | |
| from fastapi.testclient import TestClient | |
| from app.main import create_app | |
| def client(): | |
| """Fresh app (and therefore a fresh, empty BookStore) per test.""" | |
| with TestClient(create_app()) as c: | |
| yield c | |