MVP: add dashboard and Home Assistant add-on
This commit is contained in:
12
tests/test_dashboard.py
Normal file
12
tests/test_dashboard.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
|
||||
def test_dashboard_is_served_at_root() -> None:
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "SillyHome Next" in response.text
|
||||
assert "Automation-Entwurf" in response.text
|
||||
Reference in New Issue
Block a user