diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-07-08 17:51:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 17:51:56 +0100 |
commit | 67593b17287ae5e412c3d30db64d006d3b55349b (patch) | |
tree | 773814cef2383b03bed077e207dbabe25d843d80 /tests | |
parent | Revert "Update the installation docs on apt-transport-https (#7801)" (diff) | |
download | synapse-67593b17287ae5e412c3d30db64d006d3b55349b.tar.xz |
Add `HomeServer.signing_key` property (#7805)
... instead of duplicating `config.signing_key[0]` everywhere
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_base.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py index 278961c331..b589506c60 100644 --- a/tests/storage/test_base.py +++ b/tests/storage/test_base.py @@ -25,7 +25,7 @@ from synapse.storage.database import Database from synapse.storage.engines import create_engine from tests import unittest -from tests.utils import TestHomeServer +from tests.utils import TestHomeServer, default_config class SQLBaseStoreTestCase(unittest.TestCase): @@ -49,10 +49,7 @@ class SQLBaseStoreTestCase(unittest.TestCase): self.db_pool.runWithConnection = runWithConnection - config = Mock() - config._disable_native_upserts = True - config.caches = Mock() - config.caches.event_cache_size = 1 + config = default_config(name="test", parse=True) hs = TestHomeServer("test", config=config) sqlite_config = {"name": "sqlite3"} |