feat: v0.2.0 branding, healthz version, SSE dashboard live

Centralize APP_VERSION 0.2.0; /health and /healthz return version;
startup log line; UI title Security Alert Center v.0.2.0;
SSE /api/v1/stream/events for live dashboard counters.
This commit is contained in:
2026-05-27 13:20:39 +10:00
parent ea221db3c7
commit c657a65970
15 changed files with 197 additions and 25 deletions
+11 -4
View File
@@ -1,7 +1,14 @@
"""Smoke tests — run with PostgreSQL or skip integration."""
"""Health endpoint smoke tests."""
import pytest
from unittest.mock import MagicMock
from app.api.v1.health import build_health_payload
from app.version import APP_NAME, APP_VERSION
def test_placeholder():
assert True
def test_health_payload_includes_version():
db = MagicMock()
payload = build_health_payload(db)
assert payload["version"] == APP_VERSION
assert payload["name"] == APP_NAME
assert payload["database"] == "ok"