mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 14:32:30 +01:00
Fix unit tests
This commit is contained in:
parent
b5c13df0c4
commit
d4dc527a1a
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,9 @@ def default_config(name):
|
|||
config.saml2_enabled = False
|
||||
config.public_baseurl = None
|
||||
config.default_identity_server = None
|
||||
config.key_refresh_interval = 24 * 60 * 60 * 1000
|
||||
config.old_signing_keys = {}
|
||||
config.tls_fingerprints = []
|
||||
|
||||
config.use_frozen_dicts = False
|
||||
|
||||
|
@ -457,6 +460,9 @@ class MockKey(object):
|
|||
def verify(self, message, sig):
|
||||
assert sig == b"\x9a\x87$"
|
||||
|
||||
def encode(self):
|
||||
return b"<fake_encoded_key>"
|
||||
|
||||
|
||||
class MockClock(object):
|
||||
now = 1000
|
||||
|
|
Loading…
Reference in a new issue