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 the desktop contract test to the ruff-format fixed point (#12440)

Daniel Han8492a0249f4c
diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.py
index 1c31a76f80d..70865452dd9 100644
--- a/tests/studio/test_desktop_reliability_frontend_contract.py
+++ b/tests/studio/test_desktop_reliability_frontend_contract.py
@@ -713,7 +713,7 @@ def _new_chat_button_class_tokens(chat_page: str) -> list[str]:
depth -= 1
elif ch == ">" and depth == 0:
break
- assert label < end, "aria-label=\"New chat\" is not on the <Button> opening tag"
+ assert label < end, 'aria-label="New chat" is not on the <Button> opening tag'
match = re.search(r'className="([^"]*)"', chat_page[start:end])
assert match, "the New chat button has no static className"
return match.group(1).split()