Stop sub-classing object (#8249)

This commit is contained in:
Patrick Cloke 2020-09-04 06:54:56 -04:00 committed by GitHub
parent 9f8abdcc38
commit c619253db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
168 changed files with 293 additions and 292 deletions

View file

@ -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.