import pytest @pytest.fixture def notes_dir(tmp_path): """Temporary directory for note storage.""" d = tmp_path / "quicknotes" d.mkdir() return d @pytest.fixture def sample_note_file(notes_dir): """A sample note file on disk.""" path = notes_dir / "0001-20260101-120000-abc12.txt" path.write_text("Shopping List\n\nMilk\nEggs\nBread\n") return path