Spaces:
Build error
Build error
Download backend/tests/test_openapi_contract.py from shiva0013/YT-AI-Automation: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/shiva0013/YT-AI-Automation/resolve/main/backend/tests/test_openapi_contract.py
- Command line
-
hf download hf://spaces/shiva0013/YT-AI-Automation/backend/tests/test_openapi_contract.py
-
curl -L -o test_openapi_contract.py https://huggingface.co/spaces/shiva0013/YT-AI-Automation/resolve/main/backend/tests/test_openapi_contract.py
361 Bytes
| from backend.src.openapi import OPENAPI | |
| def test_openapi_contract_covers_tracked_export_lifecycle(): | |
| assert OPENAPI["openapi"] == "3.1.0" | |
| paths = OPENAPI["paths"] | |
| assert "/runs/text-to-video" in paths | |
| assert "/runs/{run_id}" in paths | |
| assert "/runs/{run_id}/events" in paths | |
| assert paths["/generate-sse"]["post"]["deprecated"] is True | |