Skip to content

Commit

Permalink
debugged unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 1, 2023
1 parent 218acd3 commit ef8955b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ test = [
"pytest >=6.2.5",
"pytest-env>=0.6.2",
"pytest-cov>=2.12.1",
"fileformats-medimage-extras",
]
docs = [
"packaging",
Expand Down
4 changes: 1 addition & 3 deletions tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import yaml
from conftest import show_cli_trace
import pytest
import shutil
import logging
from nipype2pydra.cli import task as task_cli
from nipype2pydra.utils import add_to_sys_path
Expand All @@ -18,7 +17,6 @@
"trait_modified",
"environ",
"output_type",
"crop_list",
]


Expand Down Expand Up @@ -48,7 +46,7 @@ def test_task_conversion(task_spec_file, cli_runner, work_dir, gen_test_conftest
pydra_module = import_module(output_module_path)
pydra_task = getattr(pydra_module, task_spec["task_name"])
nipype_interface = getattr(
import_module(task_spec["nipype_module"]), task_spec["task_name"]
import_module(task_spec["nipype_module"]), task_spec["nipype_name"]
)

nipype_trait_names = nipype_interface.input_spec().all_trait_names()
Expand Down

0 comments on commit ef8955b

Please sign in to comment.