mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:36:06 -04:00
Move MockClock into tests.utils so we can reüse it
This commit is contained in:
parent
baf04be5cf
commit
fc778e2bce
2 changed files with 11 additions and 11 deletions
|
@ -95,6 +95,16 @@ class MockHttpServer(HttpServer):
|
|||
self.callbacks.append((method, path_pattern, callback))
|
||||
|
||||
|
||||
class MockClock(object):
|
||||
now = 1000
|
||||
|
||||
def time(self):
|
||||
return self.now
|
||||
|
||||
def time_msec(self):
|
||||
return self.time() * 1000
|
||||
|
||||
|
||||
class MemoryDataStore(object):
|
||||
|
||||
class RoomMember(namedtuple(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue