Download tests/test_webui_templates.py from webhook/codex: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/webhook/codex/resolve/main/tests/test_webui_templates.py
- Command line
-
hf download hf://spaces/webhook/codex/tests/test_webui_templates.py
-
curl -L -o test_webui_templates.py https://huggingface.co/spaces/webhook/codex/resolve/main/tests/test_webui_templates.py
283 Bytes
| from fastapi.testclient import TestClient | |
| from src.web.app import create_app | |
| def test_login_page_renders_successfully(): | |
| client = TestClient(create_app()) | |
| response = client.get("/login") | |
| assert response.status_code == 200 | |
| assert "login" in response.text.lower() | |