feat: serve landing page via Jinja2 with module grid

This commit is contained in:
Oliver Hofmann
2026-04-27 08:56:03 +02:00
parent 90d7910500
commit 9e60fbb7cf
3 changed files with 96 additions and 5 deletions
View File
+31
View File
@@ -0,0 +1,31 @@
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_landing_returns_html():
response = client.get("/")
assert response.status_code == 200
assert "text/html" in response.headers["content-type"]
def test_landing_contains_title():
response = client.get("/")
assert "University Process Hub" in response.text
def test_landing_contains_rss_module():
response = client.get("/")
assert "RSS-Feed Server" in response.text
def test_landing_navbar_links_present():
response = client.get("/")
assert "Übersicht" in response.text
assert "RSS-Feeds" in response.text
def test_landing_info_strip_shows_db_mode():
response = client.get("/")
assert "SQLite" in response.text or "MariaDB" in response.text