Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Format two test files that #13378 and #13437 left off the formatter's fixed point (#13462)

Daniel Han88ca164e6552
diff --git a/studio/backend/tests/test_openai_videos_route.py b/studio/backend/tests/test_openai_videos_route.py
index 030e6866e35..cc14502b51f 100644
--- a/studio/backend/tests/test_openai_videos_route.py
+++ b/studio/backend/tests/test_openai_videos_route.py
@@ -1326,7 +1326,12 @@ def test_requested_duration_is_recomputed_for_the_reserved_family(client, backen
def _wan_ti2v_switch(switched):
- async def _fake_switch(model, *, before_switch = None, **_kwargs):
+ async def _fake_switch(
+ model,
+ *,
+ before_switch = None,
+ **_kwargs,
+ ):
pick = types.SimpleNamespace(
model_path = "Wan-AI/Wan2.2-TI2V-5B-Diffusers", gguf_filename = None, model_kind = None
)
@@ -1341,7 +1346,9 @@ def test_a_first_frame_without_the_i2v_class_is_refused_before_the_model_switch(
client, backend, monkeypatch
):
switched = {"completed": False}
- monkeypatch.setattr(media_auto_switch, "maybe_auto_switch_media_model", _wan_ti2v_switch(switched))
+ monkeypatch.setattr(
+ media_auto_switch, "maybe_auto_switch_media_model", _wan_ti2v_switch(switched)
+ )
monkeypatch.setattr(video_module, "_i2v_pipeline_available", lambda name: False)
png = _reference_image_bytes("PNG")
resp = _create(
diff --git a/tests/studio/playwright_find_in_page.py b/tests/studio/playwright_find_in_page.py
index 2c806534436..63d1d7e7dcc 100644
--- a/tests/studio/playwright_find_in_page.py
+++ b/tests/studio/playwright_find_in_page.py
@@ -206,7 +206,7 @@ def check_close_preserves_position(page, engine: str, mode: str, mod: str) -> No
try:
for outer_scroll in (False, True):
search_page.evaluate("outer => window.__findSmoke.setOuterScroll(outer)", outer_scroll)
- origin = search_page.locator('[data-find-scope] .mx-auto > .rounded-xl').first
+ origin = search_page.locator("[data-find-scope] .mx-auto > .rounded-xl").first
origin.evaluate("element => { element.tabIndex = 0; }")
for dismiss in ("Escape", "button"):
origin.focus()