File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def pytest_internalerror(excinfo):
58
58
raise excinfo .value
59
59
60
60
def pytest_configure (config ):
61
- config .option .capture = 'no' # allow print statements to show up in the console
61
+ config .option .capture = "no" # allow print statements to show up in the console
62
62
config .option .log_cli = True # show log messages in the console
63
63
config .option .log_level = "INFO" # set the log level to INFO
64
64
@@ -70,8 +70,3 @@ def pytest_configure(config):
70
70
@pytest .fixture
71
71
def catch_cli_exceptions ():
72
72
return CATCH_CLI_EXCEPTIONS
73
-
74
-
75
- def show_cli_trace (result ):
76
- "Used in testing to show traceback of CLI output"
77
- return "" .join (traceback .format_exception (* result .exc_info ))
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ def copy_ignore(_, names):
655
655
fileformat_readme_path = related_pkgs_dir / "fileformats" / "README.rst"
656
656
with open (fileformat_readme_path ) as f :
657
657
ff_readme_rst = f .read ()
658
- ff_readme_rst = ff_readme_rst .replace ("=" * 29 , "=" * (27 + len (pkg )))
658
+ ff_readme_rst = ff_readme_rst .replace ("=" * 29 , "=" * (21 + len (pkg )))
659
659
with open (fileformat_readme_path , "w" ) as f :
660
660
f .write (ff_readme_rst )
661
661
@@ -664,7 +664,7 @@ def copy_ignore(_, names):
664
664
)
665
665
with open (fileformat_extras_readme_path ) as f :
666
666
ffe_readme_rst = f .read ()
667
- ffe_readme_rst = ffe_readme_rst .replace ("=" * 36 , "=" * (34 + len (pkg )))
667
+ ffe_readme_rst = ffe_readme_rst .replace ("=" * 36 , "=" * (28 + len (pkg )))
668
668
with open (fileformat_extras_readme_path , "w" ) as f :
669
669
f .write (ffe_readme_rst )
670
670
Original file line number Diff line number Diff line change 2
2
import yaml
3
3
import pytest
4
4
import logging
5
- from conftest import show_cli_trace
5
+ from nipype2pydra . utils import show_cli_trace
6
6
from traceback import format_exc
7
7
from nipype2pydra .cli .task import task as task_cli
8
8
from nipype2pydra .utils import add_to_sys_path , add_exc_note , INBUILT_NIPYPE_TRAIT_NAMES
Original file line number Diff line number Diff line change 1
1
from nipype2pydra .cli .pkg_gen import pkg_gen
2
- from conftest import show_cli_trace
2
+ from nipype2pydra . utils import show_cli_trace
3
3
4
4
5
5
def test_pkg_gen (cli_runner , tmp_path ):
You can’t perform that action at this time.
0 commit comments