mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 21:10:35 -04:00
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.
This commit is contained in:
parent
ebc405446e
commit
791d7cd6f0
7 changed files with 16 additions and 23 deletions
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue