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