Tooltips in the Notebooks chooser

From the development repository at e819bc4.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
ackandClaude Fable 5.1 committed 2026-10-11 18:05:49 +02:00
1 parent fcd6117618
commit 87ba7fc776
10 files changed
+220 -24

No files matched your search

+4 -3
View File
@@ -107,8 +107,9 @@ class LocalProgramTest(unittest.TestCase):
self.assertEqual(self.request("GET", page), (200, PAGE))
self.assertEqual((self.notebooks / "Übungen A1" / "2026_10_02_page.svg").read_bytes(), PAGE)
self.assertEqual(self.json("GET", "/api/notebooks")[1]["notebooks"], ["Übungen A1"])
self.assertEqual(self.json("GET", "/api/notebooks/" + urllib.parse.quote("Übungen A1")),
(200, {"pages": ["2026_10_02_page.svg"]}))
listed = self.json("GET", "/api/notebooks/" + urllib.parse.quote("Übungen A1"))
self.assertEqual(listed[1]["pages"], ["2026_10_02_page.svg"])
self.assertAlmostEqual(listed[1]["changed"]["2026_10_02_page.svg"] / 1000, time.time(), delta=10)
def test_writing_again_replaces_the_page_and_leaves_nothing_else(self):
page = "/api/notebooks/Andy/page.svg"
@@ -283,7 +284,7 @@ class LocalProgramTest(unittest.TestCase):
def test_missing_page(self):
self.assertEqual(self.request("GET", "/api/notebooks/Andy/none.svg")[0], 404)
self.assertEqual(self.json("GET", "/api/notebooks/Andy"), (200, {"pages": []}))
self.assertEqual(self.json("GET", "/api/notebooks/Andy"), (200, {"pages": [], "changed": {}}))
# The file chooser and exporting.