Skip to content

Commit f744eb0

Browse files
authored
[TEST] Add DEBUG logging level in non-regression tests (#1546)
* Add logging in tests * Config in conftest file
1 parent b23063e commit f744eb0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/conftest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
import pytest
99

1010

11+
def pytest_configure(config):
12+
"""
13+
Allows plugins and conftest files to perform initial configuration.
14+
This hook is called for every plugin and initial conftest
15+
file after command line options have been parsed.
16+
17+
Here the same level of logging as clinica --verbose is used to allow for nipype debug set-up.
18+
"""
19+
from clinica.cmdline import setup_logging
20+
21+
setup_logging(True)
22+
23+
1124
def pytest_addoption(parser):
1225
parser.addoption(
1326
"--input_data_directory",

0 commit comments

Comments
 (0)