mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 19:14:05 -04:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
@ -472,7 +472,7 @@ class MockHttpResource(HttpServer):
|
|||
self.callbacks.append((method, path_pattern, callback))
|
||||
|
||||
|
||||
class MockKey(object):
|
||||
class MockKey:
|
||||
alg = "mock_alg"
|
||||
version = "mock_version"
|
||||
signature = b"\x9a\x87$"
|
||||
|
@ -491,7 +491,7 @@ class MockKey(object):
|
|||
return b"<fake_encoded_key>"
|
||||
|
||||
|
||||
class MockClock(object):
|
||||
class MockClock:
|
||||
now = 1000
|
||||
|
||||
def __init__(self):
|
||||
|
@ -568,7 +568,7 @@ def _format_call(args, kwargs):
|
|||
)
|
||||
|
||||
|
||||
class DeferredMockCallable(object):
|
||||
class DeferredMockCallable:
|
||||
"""A callable instance that stores a set of pending call expectations and
|
||||
return values for them. It allows a unit test to assert that the given set
|
||||
of function calls are eventually made, by awaiting on them to be called.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue