"""Shared fixtures for proactive tests.""" import pytest from gimme_job.proactive import employer_scope, roles @pytest.fixture(autouse=True) def _isolate_candidate_logs(tmp_path, monkeypatch): """Keep role/employer candidate JSONL writes inside the test tmp dir.""" monkeypatch.setattr(roles, "workspace_dir", lambda: tmp_path / "workspace") monkeypatch.setattr(employer_scope, "workspace_dir", lambda: tmp_path / "workspace")