Enhance access link collection and backend status reporting
- Updated the `collect_access_links` function to provide clearer user-facing endpoint labels and notes, particularly for non-tunneled scenarios. - Improved logging messages in the provisioning process to reflect the status of the SwarmUI and Ollama API, enhancing user feedback during setup. - Added human-readable status messages for backend loading and running states, improving clarity during the waiting process. - Updated tests to verify the new behavior and ensure accurate reporting of access links and backend statuses.
This commit is contained in:
@@ -23,7 +23,12 @@ def test_collect_links_swarm_and_ollama(monkeypatch):
|
||||
|
||||
def test_collect_links_no_tunnel():
|
||||
links = collect_access_links(_Cfg(), tunneled=False)
|
||||
assert links[0].url.startswith("gpu-rent tunnel")
|
||||
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)
|
||||
|
||||
|
||||
def test_mcp_snippet_json():
|
||||
|
||||
@@ -15,6 +15,13 @@ def test_remote_poll_idle_is_ready():
|
||||
assert "READY backend=" in _REMOTE_POLL
|
||||
|
||||
|
||||
def test_remote_poll_loading_running_humanized():
|
||||
assert "Comfy стартует" in _REMOTE_POLL
|
||||
assert "Comfy прогрев" in _REMOTE_POLL
|
||||
assert 'bstat == "loading"' in _REMOTE_POLL
|
||||
assert 'bstat == "running"' in _REMOTE_POLL
|
||||
|
||||
|
||||
def test_install_swarm_comfy_script_payload():
|
||||
from importlib.resources import files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user