Spaces:
Sleeping
Sleeping
Download tests/conftest.py from arywk-40/code-review-env: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/arywk-40/code-review-env/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/tests/conftest.py
409 Bytes
| """Shared pytest fixtures.""" | |
| import pytest | |
| from fastapi.testclient import TestClient | |
| from app import create_app | |
| from environment import OpenEnv, TASKS | |
| def sample_env() -> OpenEnv: | |
| return OpenEnv() | |
| def test_client() -> TestClient: | |
| with TestClient(create_app(OpenEnv())) as client: | |
| yield client | |
| def mock_tasks() -> dict: | |
| return TASKS | |