perf(data): bound lidar readers and lab session loading
This commit is contained in:
@@ -851,7 +851,10 @@ def test_replay_post_retries_terminal_camera_finalization_failure(
|
||||
manager.close()
|
||||
|
||||
|
||||
def test_catalog_read_never_prepares_a_cold_historical_session(tmp_path: Path) -> None:
|
||||
def test_catalog_read_never_prepares_a_cold_historical_session(
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
repository = tmp_path / "repo"
|
||||
sessions = repository / "sessions"
|
||||
session = make_legacy_session(sessions, "20260716T205632Z_viewer_live")
|
||||
@@ -866,6 +869,11 @@ def test_catalog_read_never_prepares_a_cold_historical_session(tmp_path: Path) -
|
||||
|
||||
materializer = SessionRecordingMaterializer(store.data_dir, exporter=exporter)
|
||||
manager = SessionRecordingPreparationManager(materializer)
|
||||
|
||||
def forbidden_restore(*_args: object, **_kwargs: object) -> None:
|
||||
raise AssertionError("catalog reads must not restore published recordings")
|
||||
|
||||
monkeypatch.setattr(manager, "restore_published", forbidden_restore)
|
||||
router = build_session_router(
|
||||
store,
|
||||
recording_materializer=materializer,
|
||||
|
||||
Reference in New Issue
Block a user