Download tests/test_api_contract.py from Wikki13/RxV: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/Wikki13/RxV/resolve/main/tests/test_api_contract.py
- Command line
-
hf download hf://spaces/Wikki13/RxV/tests/test_api_contract.py
-
curl -L -o test_api_contract.py https://huggingface.co/spaces/Wikki13/RxV/resolve/main/tests/test_api_contract.py
578 Bytes
| """Lightweight contract checks; integration tests run in docker compose.""" | |
| from pathlib import Path | |
| def test_golem_ui_is_the_space_entrypoint(): | |
| dockerfile = Path(__file__).parents[1] / "Dockerfile" | |
| content = dockerfile.read_text(encoding="utf-8") | |
| assert "rocker/shiny" in content | |
| assert "rxv::run_app()" in content | |
| def test_runner_has_no_public_docs_surface(): | |
| service = (Path(__file__).parents[1] / "runner" / "service.py").read_text(encoding="utf-8") | |
| assert "docs_url=None" in service | |
| assert "authorization != f\"Bearer {TOKEN}\"" in service | |