routing tests, launch.configs, redirect, stats and route statistics

This commit is contained in:
Dobromir Popov
2026-07-11 11:39:47 +03:00
parent f54ea100fb
commit 11bf460027
12 changed files with 546 additions and 80 deletions

View File

@@ -1,5 +1,6 @@
"""US-035: tracker web dashboard — served from any tracker, embedded asset."""
import http.client
import json
import time
import urllib.request
@@ -40,6 +41,23 @@ def test_dashboard_served_with_all_panels():
tracker.stop()
def test_tracker_root_redirects_to_dashboard():
tracker = TrackerServer()
port = tracker.start()
try:
connection = http.client.HTTPConnection("127.0.0.1", port)
connection.request("GET", "/")
response = connection.getresponse()
location = response.getheader("Location")
response.read()
connection.close()
finally:
tracker.stop()
assert response.status == 302
assert location == "/dashboard"
def test_dashboard_chat_uses_streaming_fetch():
tracker = TrackerServer(billing=BillingLedger())
port = tracker.start()