mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 20:35:21 -04:00
Add final type hint to tests.unittest. (#15072)
Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any.
This commit is contained in:
parent
119e0795a5
commit
42aea0d8af
55 changed files with 433 additions and 320 deletions
|
@ -84,7 +84,7 @@ class UpgradeRoomTest(unittest.HomeserverTestCase):
|
|||
self.room_id, EventTypes.Tombstone, ""
|
||||
)
|
||||
)
|
||||
self.assertIsNotNone(tombstone_event)
|
||||
assert tombstone_event is not None
|
||||
self.assertEqual(new_room_id, tombstone_event.content["replacement_room"])
|
||||
|
||||
# Check that the new room exists.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue