diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-04 16:35:38 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-04 16:35:38 +0000 |
commit | 7f4c7fe4e823eeacaa5b8c83201d504de53beefe (patch) | |
tree | 460f180a72ff96d0083406eabdfa1a790d8be0f0 | |
parent | Fix tests.handlers.test_directory (diff) | |
download | synapse-7f4c7fe4e823eeacaa5b8c83201d504de53beefe.tar.xz |
PEP8
-rw-r--r-- | tests/handlers/test_directory.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/handlers/test_directory.py b/tests/handlers/test_directory.py index 16c446498d..8e164e4be0 100644 --- a/tests/handlers/test_directory.py +++ b/tests/handlers/test_directory.py @@ -40,6 +40,7 @@ class DirectoryTestCase(unittest.TestCase): ]) self.query_handlers = {} + def register_query_handler(query_type, handler): self.query_handlers[query_type] = handler self.mock_federation.register_query_handler = register_query_handler @@ -50,7 +51,8 @@ class DirectoryTestCase(unittest.TestCase): self.mock_config = Mock() self.mock_config.signing_key = [MockKey()] - hs = HomeServer("test", + hs = HomeServer( + "test", db_pool=db_pool, http_client=None, resource_for_federation=Mock(), |