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