13 lines
320 B
Python
13 lines
320 B
Python
class MockLoop:
|
|
def __init__(self, loop_is_running: bool):
|
|
self.loop_is_running = loop_is_running
|
|
|
|
def is_running(self):
|
|
return self.loop_is_running
|
|
|
|
def run_until_complete(self, future):
|
|
return future
|
|
|
|
def run_in_executor(self, executor, func, *args):
|
|
return func(*args)
|