Spaces:
Running
Running
Download tests/conftest.py from iamfebin/algospaced-dsa: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/iamfebin/algospaced-dsa/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/tests/conftest.py
418 Bytes
| import pytest | |
| from fastapi.testclient import TestClient | |
| from main import app | |
| def client(): | |
| """Provides a TestClient instance for interacting with the FastAPI application.""" | |
| with TestClient(app) as test_client: | |
| yield test_client | |
| def sandbox_headers(): | |
| """Provides standard headers for local guest/sandbox mode.""" | |
| return {"Authorization": "Bearer sandbox"} | |