summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-10-14 09:19:35 -0400
committerGitHub <noreply@github.com>2021-10-14 09:19:35 -0400
commit1609ccf8fec87a941d3c27f668f6dca8f75a3f4a (patch)
treee3d4451d06b3270d0b33ae55886690c3ca653400 /tests/unittest.py
parentAdd a test for a workaround concerning the behaviour of third-party rule modu... (diff)
downloadsynapse-1609ccf8fec87a941d3c27f668f6dca8f75a3f4a.tar.xz
Fix-up some type hints in the relations tests. (#11076)
Diffstat (limited to '')
-rw-r--r--tests/unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index 81c1a9e9d2..a9b60b7eeb 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -46,7 +46,7 @@ from synapse.logging.context import (
     set_current_context,
 )
 from synapse.server import HomeServer
-from synapse.types import UserID, create_requester
+from synapse.types import JsonDict, UserID, create_requester
 from synapse.util import Clock
 from synapse.util.httpresourcetree import create_resource_tree
 from synapse.util.ratelimitutils import FederationRateLimiter
@@ -401,7 +401,7 @@ class HomeserverTestCase(TestCase):
         self,
         method: Union[bytes, str],
         path: Union[bytes, str],
-        content: Union[bytes, dict] = b"",
+        content: Union[bytes, str, JsonDict] = b"",
         access_token: Optional[str] = None,
         request: Type[T] = SynapseRequest,
         shorthand: bool = True,