Treat missing Store documents as normal absence
Debian Trixie package bundle / packages (push) Successful in 22m0s

This commit is contained in:
Mario Fetka
2026-07-23 13:45:21 +02:00
parent 793a0b9994
commit b7d36aa9f5
3 changed files with 12 additions and 11 deletions
@@ -146,6 +146,11 @@ class Python3RuntimeTests(unittest.TestCase):
self.assertTrue(client.stream.lines[2].endswith(" 7"))
self.assertEqual(client.stream.raw, [expected, expected, expected])
def test_store_info_treats_missing_document_as_normal_absence(self):
client = object.__new__(StoreClient)
client.stream = _Stream([_Response(4224, "Document doesn't exist")])
self.assertIsNone(client.Info("/events/new-event"))
def test_calendar_share_token_uses_python3_hashlib(self):
token = CalendarACL(None)._GetUid("calendar")
self.assertEqual(len(token), 32)