def add_client(): from tests.test_services import test_users client = RegularClient(client_id=0) MockedUserDatabase.batch_clients += [client] return client
def to_client(cls, client_entry): return RegularClient(client_id=client_entry.client_id ) if client_entry is not None else None
def add_client(): from tests.test_services import test_bots client = RegularClient(client_id=0) MockedBotDatabase.batch_clients = client return client