def find_existing_systems_with_task(self): """"Find existing GNU/Linux installations. The task will update data about existing installations. :return: a task """ task = FindExistingSystemsTask(self.storage.devicetree) task.succeeded_signal.connect( lambda: self._update_existing_systems(task.get_result())) return task
def find_existing_systems_with_task(self): """"Find existing GNU/Linux installations. The task will update data about existing installations. :return: a path to the task """ task = FindExistingSystemsTask(self.storage.devicetree) task.succeeded_signal.connect( lambda: self._update_existing_systems(task.get_result())) path = self.publish_task(DEVICE_TREE_HANDLER.namespace, task) return path
def test_find_existing_systems(self): storage = create_storage() task = FindExistingSystemsTask(storage.devicetree) self.assertEqual(task.run(), [])
def test_find_existing_systems(self): storage = create_storage() task = FindExistingSystemsTask(storage.devicetree) assert task.run() == []