test: fix resolve_model_provider mocks to accept explicitly_picked kwarg

Two streaming tests monkeypatch resolve_model_provider with a fixed-arg lambda
(_model only). The send path now calls it with explicitly_picked=, so the mocks
raised TypeError. Widened both lambdas to (_model, **_kw). Caught by the full
suite (not the focused resolver tests, which call the real function).
This commit is contained in:
nesquena-hermes committed 2026-07-13 01:45:07 +00:00
1 parent 45cb5bd3e6
commit 3559a867a9
2 files changed
+2 -2

No files matched your search

@@ -156,7 +156,7 @@ def test_same_session_profile_switch_rebuilds_agent_under_new_soul_home(tmp_path
monkeypatch.setattr( monkeypatch.setattr(
streaming, streaming,
"resolve_model_provider", "resolve_model_provider",
lambda _model: ("test-model", "test-provider", None), lambda _model, **_kw: ("test-model", "test-provider", None),
) )
monkeypatch.setattr(streaming, "_maybe_schedule_title_refresh", lambda *args, **kwargs: None) monkeypatch.setattr(streaming, "_maybe_schedule_title_refresh", lambda *args, **kwargs: None)
monkeypatch.setattr(profiles, "get_hermes_home_for_profile", home_for_profile) monkeypatch.setattr(profiles, "get_hermes_home_for_profile", home_for_profile)
@@ -129,7 +129,7 @@ def test_streaming_sessiondb_uses_session_profile_state_db(tmp_path, monkeypatch
monkeypatch.setattr( monkeypatch.setattr(
streaming, streaming,
"resolve_model_provider", "resolve_model_provider",
lambda _model: ("test-model", "test-provider", None), lambda _model, **_kw: ("test-model", "test-provider", None),
) )
monkeypatch.setattr(streaming, "_maybe_schedule_title_refresh", lambda *args, **kwargs: None) monkeypatch.setattr(streaming, "_maybe_schedule_title_refresh", lambda *args, **kwargs: None)
monkeypatch.setattr(profiles, "get_hermes_home_for_profile", lambda _profile: profile_home) monkeypatch.setattr(profiles, "get_hermes_home_for_profile", lambda _profile: profile_home)