aboutsummaryrefslogtreecommitdiff
path: root/pocketbook/tests/conftest.py
blob: db04f88fd79a1bdb1b8716a0d4ede0a6aadf61f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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