test: mock sync_session_title in title generation test
Neutralize the new `sync_session_title` call in `test_cleared_title_allows_initial_auto_generation` to prevent state.db side effects from leaking into shared test state, matching the existing pattern of mocking collaborators in this test.
This commit is contained in:
1 parent
ae8311915b
commit
54d60de1af
1 file changed
+4
@@ -173,6 +173,10 @@ def test_cleared_title_allows_initial_auto_generation(monkeypatch):
|
|||||||
"profile_env_for_background_worker",
|
"profile_env_for_background_worker",
|
||||||
lambda *_args, **_kwargs: contextlib.nullcontext(),
|
lambda *_args, **_kwargs: contextlib.nullcontext(),
|
||||||
)
|
)
|
||||||
|
monkeypatch.setattr(
|
||||||
|
"api.state_sync.sync_session_title",
|
||||||
|
lambda *_args, **_kwargs: None,
|
||||||
|
)
|
||||||
|
|
||||||
streaming._run_background_title_update(
|
streaming._run_background_title_update(
|
||||||
session.session_id,
|
session.session_id,
|
||||||
|
|||||||
Reference in new issue
Block a user