Spaces:
Sleeping
Sleeping
File size: 1,330 Bytes
5aaf5ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | def test_frontend_pages_serve_branded_shell(client):
for path in (
"/",
"/lesson/new",
"/lesson/example-session",
"/lesson/example-session/quiz",
"/lesson/example-session/summary",
):
response = client.get(path)
assert response.status_code == 200
assert "Gargi AI" in response.text
assert "/static/logo-mark.svg" in response.text
def test_frontend_assets_are_available(client):
expected_types = {
"/static/styles.css": "text/css",
"/static/app-v2.js": "application/javascript",
"/static/mic-processor.js": "application/javascript",
"/static/logo-mark.svg": "image/svg+xml",
"/static/vendor/live2d/lib/pixi.min.js": "application/javascript",
"/static/vendor/live2d/lib/pixi-live2d-display-cubism4.min.js": "application/javascript",
"/static/vendor/live2d/lib/live2dcubismcore.min.js": "application/javascript",
"/static/vendor/live2d/haru/haru_greeter_t03.model3.json": "application/json",
"/static/vendor/live2d/haru/haru_greeter_t03.2048/texture_00.png": "image/png",
}
for path, content_type in expected_types.items():
response = client.get(path)
assert response.status_code == 200
assert content_type in response.headers["content-type"]
|