summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-05-23 13:23:26 +0200
committerGitHub <noreply@github.com>2022-05-23 11:23:26 +0000
commit444588c5fc5e4fd0f3796d389fe5f062acc55286 (patch)
tree9fc7c743e6f3b19361f61035a0e6c381e782e947 /tests/storage
parentFix Complement `TestCanRegisterAdmin` with workers, by adding Complement's sh... (diff)
downloadsynapse-444588c5fc5e4fd0f3796d389fe5f062acc55286.tar.xz
Add some type hints to tests files (#12833)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_base.py2
-rw-r--r--tests/storage/test_roommember.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py
index a8ffb52c05..cce8e75c74 100644
--- a/tests/storage/test_base.py
+++ b/tests/storage/test_base.py
@@ -60,7 +60,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
         db = DatabasePool(Mock(), Mock(config=sqlite_config), fake_engine)
         db._db_pool = self.db_pool
 
-        self.datastore = SQLBaseStore(db, None, hs)
+        self.datastore = SQLBaseStore(db, None, hs)  # type: ignore[arg-type]
 
     @defer.inlineCallbacks
     def test_insert_1col(self):
diff --git a/tests/storage/test_roommember.py b/tests/storage/test_roommember.py
index a2a9c05f24..1218786d79 100644
--- a/tests/storage/test_roommember.py
+++ b/tests/storage/test_roommember.py
@@ -34,7 +34,7 @@ class RoomMemberStoreTestCase(unittest.HomeserverTestCase):
         room.register_servlets,
     ]
 
-    def prepare(self, reactor: MemoryReactor, clock: Clock, hs: TestHomeServer) -> None:
+    def prepare(self, reactor: MemoryReactor, clock: Clock, hs: TestHomeServer) -> None:  # type: ignore[override]
 
         # We can't test the RoomMemberStore on its own without the other event
         # storage logic