summary refs log tree commit diff
path: root/tests/rest/key/v2
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-11-16 14:45:52 +0000
committerGitHub <noreply@github.com>2020-11-16 14:45:52 +0000
commit791d7cd6f065e166576538b9cba3d90febf83ea4 (patch)
treedad2b07da4d176b6aea8f329e5ca4eec0e01c22c /tests/rest/key/v2
parentAdd a `custom_headers` param to `make_request` (#8760) (diff)
downloadsynapse-791d7cd6f065e166576538b9cba3d90febf83ea4.tar.xz
Rename `create_test_json_resource` to `create_test_resource` (#8759)
The root resource isn't necessarily a JsonResource, so rename this method
accordingly, and update a couple of test classes to use the method rather than
directly manipulating self.resource.
Diffstat (limited to 'tests/rest/key/v2')
-rw-r--r--tests/rest/key/v2/test_remote_key_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/key/v2/test_remote_key_resource.py b/tests/rest/key/v2/test_remote_key_resource.py
index 6850c666be..6671cbd32d 100644
--- a/tests/rest/key/v2/test_remote_key_resource.py
+++ b/tests/rest/key/v2/test_remote_key_resource.py
@@ -41,7 +41,7 @@ class BaseRemoteKeyResourceTestCase(unittest.HomeserverTestCase):
         self.http_client = Mock()
         return self.setup_test_homeserver(http_client=self.http_client)
 
-    def create_test_json_resource(self):
+    def create_test_resource(self):
         return create_resource_tree(
             {"/_matrix/key/v2": KeyApiV2Resource(self.hs)}, root_resource=NoResource()
         )