aboutsummaryrefslogtreecommitdiff
path: root/pocketbook/tests/conftest.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-26 14:05:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-26 14:05:40 -0500
commit70e89e946cbdff307284d11a46558161f713607c (patch)
treec305ce9249fac0aef1318f5caabae0df31be7e95 /pocketbook/tests/conftest.py
parent92f4a9394ae1b662d037a3016e94058a3881bdb8 (diff)
downloadarchsetup-70e89e946cbdff307284d11a46558161f713607c.tar.gz
archsetup-70e89e946cbdff307284d11a46558161f713607c.zip
refactor: fold pocketbook in-tree and drop its install steps
Pocketbook is nowhere near ready, so I pulled it back from publication: deleted the github mirror and the cjennings.net repo, removed the server mirror hook, and copied the package into pocketbook/ here until it's ready to spin back out. Dropped the steps that provisioned it on a fresh install: the gtk4-layer-shell dep and the pip install in archsetup, and the clone in post-install.sh. That clone pointed at the now-deleted github repo, so it would have failed a fresh run regardless. Re-wiring the install is tracked in the pocketbook backlog.
Diffstat (limited to 'pocketbook/tests/conftest.py')
-rw-r--r--pocketbook/tests/conftest.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pocketbook/tests/conftest.py b/pocketbook/tests/conftest.py
new file mode 100644
index 0000000..db04f88
--- /dev/null
+++ b/pocketbook/tests/conftest.py
@@ -0,0 +1,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