chore: ruff format pass — no logic changes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWysE6jYn4YjNorLBQ1cXb
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b44410c0a8
commit
5ccd569f63
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 57 KiB |
+15
-11
@@ -29,16 +29,18 @@ _STORAGE_STATE = {
|
||||
"localStorage": [
|
||||
{
|
||||
"name": "workflow",
|
||||
"value": json.dumps({
|
||||
"last_node_id": 0,
|
||||
"last_link_id": 0,
|
||||
"nodes": [],
|
||||
"links": [],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {},
|
||||
"version": 0.4,
|
||||
}),
|
||||
"value": json.dumps(
|
||||
{
|
||||
"last_node_id": 0,
|
||||
"last_link_id": 0,
|
||||
"nodes": [],
|
||||
"links": [],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {},
|
||||
"version": 0.4,
|
||||
}
|
||||
),
|
||||
},
|
||||
{"name": "Comfy.OpenWorkflowsPaths", "value": "[]"},
|
||||
{"name": "Comfy.ActiveWorkflowIndex", "value": "0"},
|
||||
@@ -609,7 +611,9 @@ async def main() -> int:
|
||||
|
||||
async with async_playwright() as pw:
|
||||
browser = await pw.chromium.launch(headless=True)
|
||||
context = await browser.new_context(viewport=VIEWPORT, storage_state=_STORAGE_STATE)
|
||||
context = await browser.new_context(
|
||||
viewport=VIEWPORT, storage_state=_STORAGE_STATE
|
||||
)
|
||||
page = await context.new_page()
|
||||
|
||||
print(f"Opening {COMFYUI_URL} …")
|
||||
|
||||
@@ -295,7 +295,9 @@ class TestUS3ModelLifecycle:
|
||||
|
||||
monkeypatch.setattr(ollama_mod, "_post_json", fake_post)
|
||||
|
||||
OllamaLoadModel().load_model(client="http://localhost:11434", model="test-model")
|
||||
OllamaLoadModel().load_model(
|
||||
client="http://localhost:11434", model="test-model"
|
||||
)
|
||||
|
||||
assert captured.get("url", "").endswith("/api/generate"), (
|
||||
f"Expected URL ending in /api/generate but got: {captured.get('url')}"
|
||||
@@ -335,7 +337,9 @@ class TestUS3ModelLifecycle:
|
||||
|
||||
monkeypatch.setattr(ollama_mod, "_post_json", fake_post)
|
||||
|
||||
OllamaLoadModel().load_model(client="http://localhost:11434", model="test-model")
|
||||
OllamaLoadModel().load_model(
|
||||
client="http://localhost:11434", model="test-model"
|
||||
)
|
||||
|
||||
payload = captured.get("payload", {})
|
||||
assert payload.get("keep_alive") == -1, (
|
||||
|
||||
Reference in New Issue
Block a user