13
13
from pydra .engine .helpers import ensure_list
14
14
from .utils import import_module_from_path
15
15
16
-
17
16
@attrs .define
18
17
class TaskConverter :
19
18
@@ -326,7 +325,6 @@ def types_to_names(spec_fields):
326
325
spec_str += f"{ self .task_name } _input_spec = specs.SpecInfo(name='Input', fields=input_fields, bases=(specs.ShellSpec,))\n \n "
327
326
spec_str += f"output_fields = { output_fields_str } \n "
328
327
spec_str += f"{ self .task_name } _output_spec = specs.SpecInfo(name='Output', fields=output_fields, bases=(specs.ShellOutSpec,))\n \n "
329
-
330
328
spec_str += f"class { self .task_name } (ShellCommandTask):\n "
331
329
if self .doctest :
332
330
spec_str += self .create_doctest ()
@@ -415,7 +413,6 @@ def write_test_error(self, input_error):
415
413
spec_str += f" task = { self .task_name } (in_file=in_file, **inputs)\n "
416
414
spec_str += " with pytest.raises(eval(error)):\n "
417
415
spec_str += " task.generated_output_names\n "
418
-
419
416
return spec_str
420
417
421
418
def create_doctest (self ):
@@ -471,4 +468,4 @@ def create_doctest(self):
471
468
("'TYPE_MultiOutputObj'" , "specs.MultiOutputObj" ),
472
469
("'TYPE_MultiInputFile'" , "specs.MultiInputFile" ),
473
470
("'TYPE_MultiOutputFile'" , "specs.MultiOutputFile" ),
474
- ]
471
+ ]
0 commit comments