summary refs log tree commit diff
path: root/tests/push/test_http.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-01-11 07:35:40 -0500
committerGitHub <noreply@github.com>2023-01-11 07:35:40 -0500
commit7f2cabf271e6027da4001571b9e6584ade3c2c8c (patch)
tree74c3363d48a65ee5b858974ddd2c99302cd7b3c8 /tests/push/test_http.py
parentAdd index to improve performance of the `/timestamp_to_event` endpoint used f... (diff)
downloadsynapse-7f2cabf271e6027da4001571b9e6584ade3c2c8c.tar.xz
Fix-up type hints for tests.push module. (#14816)
Diffstat (limited to 'tests/push/test_http.py')
-rw-r--r--tests/push/test_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/push/test_http.py b/tests/push/test_http.py
index afaafe79aa..23447cc310 100644
--- a/tests/push/test_http.py
+++ b/tests/push/test_http.py
@@ -46,7 +46,7 @@ class HTTPPusherTests(HomeserverTestCase):
 
         m = Mock()
 
-        def post_json_get_json(url, body):
+        def post_json_get_json(url: str, body: JsonDict) -> Deferred:
             d: Deferred = Deferred()
             self.push_attempts.append((d, url, body))
             return make_deferred_yieldable(d)