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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Inject the schema fault where get_progress gets its connection (#11610)
Daniel Han727b03397552
diff --git a/studio/backend/tests/test_chat_generation_lease_compat.py b/studio/backend/tests/test_chat_generation_lease_compat.pyindex 26a82c50209..3f26dcfd581 100644--- a/studio/backend/tests/test_chat_generation_lease_compat.py+++ b/studio/backend/tests/test_chat_generation_lease_compat.py@@ -444,9 +444,13 @@ def test_a_real_no_such_column_error_is_not_swallowed(clock, monkeypatch):"""The degradations key on the lease columns by name, not on the error class.A `no such column` naming anything else is a genuine schema fault and must surface.++ The fault goes in at _connect, the handle get_progress actually uses. Since #11525 a warm+ thread reuses its pooled connection without calling get_connection, and _seed() has just+ pooled one, so a fault injected there was never reached when this test ran on its own."""_seed()- real_get = runs_db.get_connection+ real_connect = runs_db._connectclass _Boom:def __init__(self, inner):@@ -460,7 +464,7 @@ def test_a_real_no_such_column_error_is_not_swallowed(clock, monkeypatch):def __getattr__(self, name):return getattr(self._inner, name)- monkeypatch.setattr(runs_db, "get_connection", lambda **kw: _Boom(real_get(**kw)))+ monkeypatch.setattr(runs_db, "_connect", lambda: _Boom(real_connect()))with pytest.raises(sqlite3.OperationalError, match = "some_other_column"):runs_db.get_progress("run-1")