We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a5b8b commit 108f03cCopy full SHA for 108f03c
nipype/conftest.py
@@ -11,3 +11,13 @@ def add_np(doctest_namespace):
11
filepath = os.path.dirname(os.path.realpath(__file__))
12
datadir = os.path.realpath(os.path.join(filepath, 'testing/data'))
13
doctest_namespace["datadir"] = datadir
14
+
15
16
+@pytest.fixture(scope='session', autouse=True)
17
+def in_testing():
18
+ datadir = os.path.realpath(
19
+ os.path.join(os.path.dirname(__file__), 'testing/data'))
20
+ origdir = os.getcwd()
21
+ os.chdir(datadir)
22
+ yield
23
+ os.chdir(origdir)
0 commit comments