mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 14:34:56 -04:00
Add HomeServer.signing_key
property (#7805)
... instead of duplicating `config.signing_key[0]` everywhere
This commit is contained in:
parent
ef5ed5292b
commit
67593b1728
10 changed files with 12 additions and 12 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue