feat: complete Phase 6 - Hybrid Coexistence testing, PWA kiosk mode, static SPA mount and Pilot manual (v0.6.0-beta)
This commit is contained in:
@@ -25,6 +25,10 @@ async def test_root_redirects_or_returns_info():
|
||||
response = await client.get("/")
|
||||
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["app"] == __app_name__
|
||||
assert data["docs"] == "/docs"
|
||||
content_type = response.headers.get("content-type", "")
|
||||
if "application/json" in content_type:
|
||||
data = response.json()
|
||||
assert data["app"] == __app_name__
|
||||
else:
|
||||
assert "text/html" in content_type
|
||||
assert len(response.text) > 0
|
||||
|
||||
Reference in New Issue
Block a user