class documentation

A reactor stub which contains enough functionality to be used with the _Janitor.

Method __init__ No summary
Method getDelayedCalls Return self.delayedCalls.
Method iterate Increment self.iterations.
Method removeAll Increment self.removeAllCalled and return self.selectables.
Instance Variable delayedCalls The value to return from getDelayedCalls.
Instance Variable iterations A list of the arguments passed to iterate.
Instance Variable removeAllCalled Number of times that removeAll was called.
Instance Variable selectables The value that will be returned from removeAll.
def __init__(self, delayedCalls: list[DelayedCall], selectables: list[object] | None = None):
Parameters
delayedCalls:list[DelayedCall]See StubReactor.delayedCalls.
selectables:list[object] | NoneSee StubReactor.selectables.
def getDelayedCalls(self) -> list[DelayedCall]:

Return self.delayedCalls.

def iterate(self, timeout: float | None = None):

Increment self.iterations.

def removeAll(self) -> list[object]:

Increment self.removeAllCalled and return self.selectables.

delayedCalls =

The value to return from getDelayedCalls.

iterations: list[float | None] =

A list of the arguments passed to iterate.

removeAllCalled: int =

Number of times that removeAll was called.

selectables =

The value that will be returned from removeAll.