Skip to content

Commit 1512c62

Browse files
committed
TEST: Add to testing namespace
1 parent 29c0ece commit 1512c62

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

smriprep/conftest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
import os
22

3+
import pytest
4+
import numpy
5+
6+
from smriprep.data import load_resource
7+
38
os.environ['NO_ET'] = '1'
9+
10+
11+
@pytest.fixture(autouse=True)
12+
def populate_namespace(doctest_namespace, tmp_path):
13+
doctest_namespace['os'] = os
14+
doctest_namespace['np'] = numpy
15+
doctest_namespace['load'] = load_resource
16+
doctest_namespace['testdir'] = tmp_path

0 commit comments

Comments
 (0)