"""Shared test fixtures.""" import pytest @pytest.fixture(autouse=True) def isolated_feedback_store(tmp_path, monkeypatch): """Keep the cross-job feedback store out of the real outputs directory. Saving a review decision or asking a chat question appends to config.REVIEW_FEEDBACK_DIR, which is process-wide rather than job-local. Without this, running the suite would accumulate junk in backend/outputs. """ monkeypatch.setattr("backend.config.REVIEW_FEEDBACK_DIR", str(tmp_path / "_feedback"))