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.

Read the picker's orderRecommendedRows arguments as a set (#11663)

Daniel Han1a7a97aec0bd
diff --git a/tests/studio/test_model_picker_catalog_first_paint.py b/tests/studio/test_model_picker_catalog_first_paint.py
index ef1425739a8..20bf7a57b8d 100644
--- a/tests/studio/test_model_picker_catalog_first_paint.py
+++ b/tests/studio/test_model_picker_catalog_first_paint.py
@@ -50,10 +50,19 @@ def test_listing_takes_over_each_id_once_it_reports_it():
# orderRecommendedRows hands a seed over only to a row that survived `keep`: keying on the raw result set dropped
# curated rows the filters rejected.
- assert "orderRecommendedRows({" in rows
- assert "seeds: catalogSeedRows," in rows
- assert "results: recommendedSearch.results," in rows
- assert "keep,\n deviceFiltered,\n fits,\n });" in rows
+ call = rows[rows.index("orderRecommendedRows({") :]
+ call = call[: call.index("\n });")]
+ # One argument per line, read as a set: pinning the tail of the call broke when #11642 added `familyOf` after
+ # `fits`, which changes nothing this test is about.
+ args = {line.strip() for line in call.splitlines()[1:]}
+ for arg in (
+ "seeds: catalogSeedRows,",
+ "results: recommendedSearch.results,",
+ "keep,",
+ "deviceFiltered,",
+ "fits,",
+ ):
+ assert arg in args, f"orderRecommendedRows is no longer passed `{arg}`: {sorted(args)}"
assert "recommendedSearch.results.map((r) => r.id)" not in rows