fix(tests): more _read_profile_model_config stubs need 3-tuple

This commit is contained in:
b3nw committed 2026-07-01 20:33:09 +00:00
1 parent 6d06001b6f
commit 6f9c648d23
2 files changed
+2 -2

No files matched your search

@@ -59,7 +59,7 @@ def test_chat_start_materializes_cron_session_before_reply(monkeypatch, tmp_path
monkeypatch.setattr(routes, "get_session", fail_get_session)
monkeypatch.setattr(routes, "_get_or_materialize_session", materialize)
monkeypatch.setattr(routes, "_resolve_chat_workspace_with_recovery", lambda _s, _w: str(tmp_path))
monkeypatch.setattr(routes, "_read_profile_model_config", lambda _s, _provider: (None, None))
monkeypatch.setattr(routes, "_read_profile_model_config", lambda _s, _provider: (None, None, None))
monkeypatch.setattr(
routes,
"_resolve_compatible_session_model_state",
@@ -188,7 +188,7 @@ def test_chat_start_body_profile_cannot_retag_visible_empty_session_without_acti
monkeypatch.setattr(routes, "_get_or_materialize_session", lambda sid, **_kwargs: empty_visible)
monkeypatch.setattr(routes, "_get_active_profile_name", lambda: "default")
monkeypatch.setattr(routes, "_resolve_chat_workspace_with_recovery", lambda *_args, **_kwargs: "/workspace")
monkeypatch.setattr(routes, "_read_profile_model_config", lambda *_args, **_kwargs: (None, None))
monkeypatch.setattr(routes, "_read_profile_model_config", lambda *_args, **_kwargs: (None, None, None))
monkeypatch.setattr(
routes,
"_resolve_compatible_session_model_state",