tests on dash
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user