feat: report Gitea event stream freshness
CI / lint (pull_request) Successful in 9s
CI / build-frontend (pull_request) Successful in 6s

This commit is contained in:
timmy committed 2026-08-05 09:03:20 +00:00
1 parent 1e17771840
commit 5a3f0128c4
2 files changed
+15

No files matched your search

+8
View File
@@ -20,6 +20,14 @@ def test_dashboard_has_realtime_gitea_event_stream_widget():
assert "event.repo?.full_name" in html
def test_event_stream_reports_when_activity_was_refreshed():
html = DASHBOARD.read_text()
assert 'id="gitea-events-status"' in html
assert "setEventStreamStatus('Updating…')" in html
assert "setEventStreamStatus('Updated ' + fmt(new Date()))" in html
@pytest.mark.anyio
async def test_event_stream_returns_recent_authenticated_gitea_activity(monkeypatch):
expected = [{"type": "create", "actor": {"login": "timmy"}}]