Update backend status handling and improve user notifications
- Enhanced documentation to clarify the transition from 'Idle' to 'ready (running)' for backend states, improving user understanding of system readiness. - Updated logging messages in the notification system to reflect the new backend status terminology, ensuring accurate feedback during operations. - Refined access link collection logic to better handle tunneled and non-tunneled scenarios, enhancing user experience. - Improved tests to validate the new backend status handling and ensure accurate reporting of access links and notifications.
This commit is contained in:
@@ -23,12 +23,7 @@ def test_collect_links_swarm_and_ollama(monkeypatch):
|
||||
|
||||
def test_collect_links_no_tunnel():
|
||||
links = collect_access_links(_Cfg(), tunneled=False)
|
||||
labels = [x.label for x in links]
|
||||
assert "SwarmUI UI" in labels
|
||||
assert "Ollama API" in labels
|
||||
assert any("17801" in x.url for x in links)
|
||||
assert any(x.note == "после tunnel" for x in links)
|
||||
assert any(x.label == "Сейчас" for x in links)
|
||||
assert links[0].url.startswith("gpu-rent tunnel")
|
||||
|
||||
|
||||
def test_mcp_snippet_json():
|
||||
|
||||
Reference in New Issue
Block a user