Skip to content
Snippets Groups Projects
Commit d4dc527a authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix unit tests

parent b5c13df0
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,9 @@ def default_config(name): ...@@ -142,6 +142,9 @@ def default_config(name):
config.saml2_enabled = False config.saml2_enabled = False
config.public_baseurl = None config.public_baseurl = None
config.default_identity_server = 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 config.use_frozen_dicts = False
...@@ -457,6 +460,9 @@ class MockKey(object): ...@@ -457,6 +460,9 @@ class MockKey(object):
def verify(self, message, sig): def verify(self, message, sig):
assert sig == b"\x9a\x87$" assert sig == b"\x9a\x87$"
def encode(self):
return b"<fake_encoded_key>"
class MockClock(object): class MockClock(object):
now = 1000 now = 1000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment