aboutsummaryrefslogtreecommitdiff
path: root/pocketbook/tests/test_panel.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-02 17:09:42 -0400
committerCraig Jennings <c@cjennings.net>2026-07-02 17:09:42 -0400
commitca59dcb2717d1f32200e3d8c87e136abe3572c6e (patch)
tree9f145597ed19dd2b22910c351e7a733153bb4ac6 /pocketbook/tests/test_panel.py
parent5733ee098e0eefe27da8fddcdaa98a1f19d453fd (diff)
downloadarchsetup-ca59dcb2717d1f32200e3d8c87e136abe3572c6e.tar.gz
archsetup-ca59dcb2717d1f32200e3d8c87e136abe3572c6e.zip
chore(pocketbook)!: remove the in-tree pocketbook package
Craig's finish-or-cancel checkpoint resolved to remove: the app left daily use in May and the org-capture popup covers quick notes. The pip install, launcher, and Super+P bind went with it (dotfiles a750cb4); the three pocketbook tasks are closed.
Diffstat (limited to 'pocketbook/tests/test_panel.py')
-rw-r--r--pocketbook/tests/test_panel.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/pocketbook/tests/test_panel.py b/pocketbook/tests/test_panel.py
deleted file mode 100644
index 92f8648..0000000
--- a/pocketbook/tests/test_panel.py
+++ /dev/null
@@ -1,40 +0,0 @@
-from unittest.mock import MagicMock
-from pocketbook.note import Note
-
-
-class TestPanelController:
- """Test panel controller logic with a mocked store."""
-
- def _make_controller(self):
- from pocketbook.panel import PanelController
- store = MagicMock()
- controller = PanelController(store)
- return controller, store
-
- def test_add_note_calls_store_create(self):
- controller, store = self._make_controller()
- store.create.return_value = "0001-20260101-120000-abc12.txt"
- controller.add_note()
- store.create.assert_called_once_with("New Note", "")
-
- def test_delete_note_calls_store_delete(self):
- controller, store = self._make_controller()
- controller.delete_note("0001-20260101-120000-abc12.txt")
- store.delete.assert_called_once_with("0001-20260101-120000-abc12.txt")
-
- def test_update_note_calls_store_update(self):
- controller, store = self._make_controller()
- controller.update_note("0001-20260101-120000-abc12.txt", "New Title", "New Body")
- store.update.assert_called_once_with(
- "0001-20260101-120000-abc12.txt", "New Title", "New Body"
- )
-
- def test_get_notes_calls_store_list(self):
- controller, store = self._make_controller()
- store.list_notes.return_value = [
- ("0001-20260101-120000-abc12.txt", Note(title="A", body="a")),
- ]
- notes = controller.get_notes()
- store.list_notes.assert_called_once()
- assert len(notes) == 1
- assert notes[0][1].title == "A"