Ejemplo n.º 1
0
 def setUp(self) -> None:
     """Pre-test actions."""
     self.contact_list  = ContactList()
     self.settings      = Settings()
     self.onion_service = OnionService()
     self.queues        = gen_queue_dict()
     self.gateway       = Gateway()
Ejemplo n.º 2
0
 def setUp(self):
     self.unittest_dir = cd_unittest()
     self.contact_list = ContactList()
     self.settings = Settings(disable_gui_dialog=True)
     self.queues = gen_queue_dict()
     self.onion_service = OnionService()
     self.args = self.contact_list, self.settings, self.onion_service, self.queues
Ejemplo n.º 3
0
 def setUp(self) -> None:
     """Pre-test actions."""
     self.l_queue       = Queue()
     self.key_list      = KeyList(nicks=['Alice'])
     self.settings      = Settings()
     self.gateway       = Gateway()
     self.onion_service = OnionService()
Ejemplo n.º 4
0
 def setUp(self):
     self.contact_list  = ContactList()
     self.group_list    = GroupList()
     self.settings      = Settings(disable_gui_dialog=True)
     self.queues        = gen_queue_dict()
     self.onion_service = OnionService()
     self.args          = self.contact_list, self.group_list, self.settings, self.queues, self.onion_service
Ejemplo n.º 5
0
 def setUp(self):
     """Pre-test actions."""
     self.contact_list = ContactList()
     self.settings = Settings()
     self.onion_service = OnionService()
     self.gateway = Gateway()
     self.args = self.contact_list, self.settings, self.onion_service, self.gateway
Ejemplo n.º 6
0
 def setUp(self):
     self.settings = Settings(disable_gui_dialog=True)
     self.gateway = Gateway()
     self.contact_list = ContactList()
     self.group_list = GroupList()
     self.master_key = MasterKey()
     self.onion_service = OnionService()
     self.queues = gen_queue_dict()
Ejemplo n.º 7
0
 def setUp(self) -> None:
     """Pre-test actions."""
     self.contact_list  = ContactList(nicks=[LOCAL_ID])
     self.group_list    = GroupList()
     self.settings      = Settings(disable_gui_dialog=True)
     self.queues        = gen_queue_dict()
     self.onion_service = OnionService()
     self.args          = self.contact_list, self.group_list, self.settings, self.queues, self.onion_service
Ejemplo n.º 8
0
 def setUp(self):
     self.unittest_dir  = cd_unittest()
     self.settings      = Settings()
     self.queues        = gen_queue_dict()
     self.window        = TxWindow()
     self.onion_service = OnionService()
     self.contact_list  = ContactList(nicks=['Alice', 'Bob', 'Charlie'])
     self.args          = self.settings, self.queues, self.window
Ejemplo n.º 9
0
 def setUp(self):
     self.contact_list = ContactList(nicks=['Alice'])
     self.group_list = GroupList()
     self.user_input = UserInput()
     self.window = TxWindow(self.contact_list, self.group_list)
     self.settings = Settings()
     self.queues = gen_queue_dict()
     self.onion_service = OnionService()
     self.gateway = Gateway()
     self.args = self.user_input, self.window, self.settings, self.queues, self.onion_service, self.gateway
Ejemplo n.º 10
0
 def setUp(self):
     self.contact_list = ContactList(['Alice', 'Bob'])
     self.group_list = GroupList(groups=['test_group', 'test_group_2'])
     self.window = TxWindow(self.contact_list, self.group_list)
     self.window.group = self.group_list.get_group('test_group')
     self.window.type = WIN_TYPE_GROUP
     self.settings = Settings()
     self.queues = gen_queue_dict()
     self.onion_service = OnionService()
     self.gateway = Gateway()
     self.args = self.settings, self.queues, self.onion_service, self.gateway
Ejemplo n.º 11
0
 def setUp(self):
     self.unittest_dir = cd_unittest()
     self.contact_list = ContactList()
     self.group_list = GroupList()
     self.settings = Settings()
     self.queues = gen_queue_dict()
     self.master_key = MasterKey()
     self.onion_service = OnionService(
         master_key=self.master_key, file_name=f'{DIR_USER_DATA}/unittest')
     self.args = (self.contact_list, self.group_list, self.settings,
                  self.queues, self.master_key, self.onion_service)
Ejemplo n.º 12
0
 def setUp(self):
     self.window = TxWindow()
     self.contact_list = ContactList()
     self.group_list = GroupList()
     self.settings = Settings()
     self.queues = gen_queue_dict()
     self.master_key = MasterKey()
     self.onion_service = OnionService()
     self.gateway = Gateway()
     self.args = (self.window, self.contact_list, self.group_list,
                  self.settings, self.queues, self.master_key,
                  self.onion_service, self.gateway)
Ejemplo n.º 13
0
 def setUp(self):
     self.contact_list = ContactList()
     self.settings = Settings()
     self.onion_service = OnionService()
     self.queues = gen_queue_dict()
     self.gateway = Gateway()
Ejemplo n.º 14
0
 def setUp(self):
     self.l_queue       = Queue()
     self.key_list      = KeyList(nicks=['Alice'])
     self.settings      = Settings()
     self.gateway       = Gateway()
     self.onion_service = OnionService()