mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 13:54:17 -04:00
Use inline type hints in tests/
(#10350)
This PR is tantamount to running: python3.8 -m com2ann -v 6 tests/ (com2ann requires python 3.8 to run)
This commit is contained in:
parent
89cfc3dd98
commit
93729719b8
18 changed files with 62 additions and 63 deletions
|
@ -7,9 +7,7 @@ from tests import unittest
|
|||
|
||||
class BackgroundUpdateTestCase(unittest.HomeserverTestCase):
|
||||
def prepare(self, reactor, clock, homeserver):
|
||||
self.updates = (
|
||||
self.hs.get_datastore().db_pool.updates
|
||||
) # type: BackgroundUpdater
|
||||
self.updates: BackgroundUpdater = self.hs.get_datastore().db_pool.updates
|
||||
# the base test class should have run the real bg updates for us
|
||||
self.assertTrue(
|
||||
self.get_success(self.updates.has_completed_background_updates())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue