tests on dash

This commit is contained in:
Dobromir Popov
2026-07-11 12:38:51 +03:00
parent 11bf460027
commit bb561a9665
7 changed files with 132 additions and 1 deletions

View File

@@ -76,6 +76,22 @@ def test_dashboard_chat_uses_streaming_fetch():
assert "renderChatModels(true)" in html
def test_dashboard_allows_admin_to_request_selected_model_load():
tracker = TrackerServer()
port = tracker.start()
try:
html = urllib.request.urlopen(
f"http://127.0.0.1:{port}/dashboard"
).read().decode()
finally:
tracker.stop()
assert 'id="request-model-load"' in html
assert "requestSelectedModelLoad" in html
assert '"/v1/models/load"' in html
assert '$("request-model-load").style.display = enabled ? "" : "none"' in html
def test_network_map_includes_node_friendly_name():
tracker = TrackerServer()
port = tracker.start()