diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-11-16 14:45:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 14:45:52 +0000 |
commit | 791d7cd6f065e166576538b9cba3d90febf83ea4 (patch) | |
tree | dad2b07da4d176b6aea8f329e5ca4eec0e01c22c /tests/rest/admin/test_admin.py | |
parent | Add a `custom_headers` param to `make_request` (#8760) (diff) | |
download | synapse-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/admin/test_admin.py')
-rw-r--r-- | tests/rest/admin/test_admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/admin/test_admin.py b/tests/rest/admin/test_admin.py index 0f1144fe1e..6804f9337f 100644 --- a/tests/rest/admin/test_admin.py +++ b/tests/rest/admin/test_admin.py @@ -35,7 +35,7 @@ from tests import unittest class VersionTestCase(unittest.HomeserverTestCase): url = "/_synapse/admin/v1/server_version" - def create_test_json_resource(self): + def create_test_resource(self): resource = JsonResource(self.hs) VersionServlet(self.hs).register(resource) return resource |