def test_run_export_task_with_config_path(self, mock_put_file):
        """Tests that the each function is called for each filtered observable."""
        previous = yeti_config.get("system", "export_path")
        yeti_config.system.export_path = "/tmp"
        taskmanager.TaskManager.run_task("RandomExport", TaskParams())
        task = ExportTask.find(name="RandomExport")
        assert task is not None
        self.assertEqual(task.status, TaskStatus.completed, task.status_message)
        filename, _ = mock_put_file.call_args[0]
        self.assertEqual(filename, "randomexport")
        yeti_config.system.export_path = previous
Tests that the each function is called for each filtered observable.
tests/core_tests/tasks.py