mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 00:14:55 -04:00
Add type hints for tests/unittest.py
. (#12347)
In particular, add type hints for get_success and friends, which are then helpful in a bunch of places.
This commit is contained in:
parent
33ebee47e4
commit
f0b03186d9
12 changed files with 97 additions and 48 deletions
|
@ -358,6 +358,7 @@ class ApplicationServiceTransactionStoreTestCase(unittest.HomeserverTestCase):
|
|||
self.get_success(self._insert_txn(service.id, 12, other_events))
|
||||
|
||||
txn = self.get_success(self.store.get_oldest_unsent_txn(service))
|
||||
assert txn is not None
|
||||
self.assertEqual(service, txn.service)
|
||||
self.assertEqual(10, txn.id)
|
||||
self.assertEqual(events, txn.events)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue