bite.tests module

class bite.tests.MockReader(input_buf: bytes, *, chunk_size: int | None = None)[source]

Mocks a asyncio.StreamReader with a static bytes object.

Parameters:

input_buf – The input data to provide via the asyncio.StreamReader interface.

at_eof() bool[source]
async read(n=-1) bytes[source]
async readexactly(n) bytes[source]
async readline() bytes[source]
async readuntil(separator=b'\n') bytes[source]

Not implemented!