mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Fix tests
This commit is contained in:
parent
265b993b8a
commit
6ea27fafad
10 changed files with 22 additions and 21 deletions
|
@ -42,7 +42,7 @@ class ApplicationServiceStoreTestCase(unittest.TestCase):
|
|||
hs = yield setup_test_homeserver(
|
||||
config=config,
|
||||
federation_sender=Mock(),
|
||||
replication_layer=Mock(),
|
||||
replication_client=Mock(),
|
||||
)
|
||||
|
||||
self.as_token = "token1"
|
||||
|
@ -119,7 +119,7 @@ class ApplicationServiceTransactionStoreTestCase(unittest.TestCase):
|
|||
hs = yield setup_test_homeserver(
|
||||
config=config,
|
||||
federation_sender=Mock(),
|
||||
replication_layer=Mock(),
|
||||
replication_client=Mock(),
|
||||
)
|
||||
self.db_pool = hs.get_db_pool()
|
||||
|
||||
|
@ -455,7 +455,7 @@ class ApplicationServiceStoreConfigTestCase(unittest.TestCase):
|
|||
config=config,
|
||||
datastore=Mock(),
|
||||
federation_sender=Mock(),
|
||||
replication_layer=Mock(),
|
||||
replication_client=Mock(),
|
||||
)
|
||||
|
||||
ApplicationServiceStore(None, hs)
|
||||
|
@ -473,7 +473,7 @@ class ApplicationServiceStoreConfigTestCase(unittest.TestCase):
|
|||
config=config,
|
||||
datastore=Mock(),
|
||||
federation_sender=Mock(),
|
||||
replication_layer=Mock(),
|
||||
replication_client=Mock(),
|
||||
)
|
||||
|
||||
with self.assertRaises(ConfigError) as cm:
|
||||
|
@ -497,7 +497,7 @@ class ApplicationServiceStoreConfigTestCase(unittest.TestCase):
|
|||
config=config,
|
||||
datastore=Mock(),
|
||||
federation_sender=Mock(),
|
||||
replication_layer=Mock(),
|
||||
replication_client=Mock(),
|
||||
)
|
||||
|
||||
with self.assertRaises(ConfigError) as cm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue