Skip to content

Commit

Permalink
disabled doctest in test_task
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 26, 2024
1 parent 01f4e88 commit 72dcec9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions nipype2pydra/task/tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,22 @@ def test_task_conversion(task_spec_file, cli_runner, work_dir, gen_test_conftest
)

# Run doctests
logging.info("Running doctests for %s", output_module_path)
with add_to_sys_path(pkg_root):
with contextlib.redirect_stdout(io.StringIO()) as f:
exit_code = pytest.main(
[
str(
pkg_root.joinpath(
*output_module_path.split(".")
).with_suffix(".py")
),
"--doctest-modules",
"--ignore-glob=test_*.py",
]
)

assert not exit_code, f.getvalue()
# logging.info("Running doctests for %s", output_module_path)
# with add_to_sys_path(pkg_root):
# with contextlib.redirect_stdout(io.StringIO()) as f:
# exit_code = pytest.main(
# [
# str(
# pkg_root.joinpath(
# *output_module_path.split(".")
# ).with_suffix(".py")
# ),
# "--doctest-modules",
# "--ignore-glob=test_*.py",
# ]
# )

# assert not exit_code, f.getvalue()
# tests_fspath = pkg_root.joinpath(*output_module_path.split(".")).parent / "tests"

# # logging.info("Running generated tests for %s", output_module_path)
Expand Down

0 comments on commit 72dcec9

Please sign in to comment.