Treat missing Store documents as normal absence
Debian Trixie package bundle / packages (push) Successful in 22m0s
Debian Trixie package bundle / packages (push) Successful in 22m0s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user