Skip to content

Commit 5b5e92f

Browse files
committed
ENH(TST): skip test_dlad.py if no datalad.api
1 parent 57c9c56 commit 5b5e92f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

heudiconv/external/tests/test_dlad.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
from ..dlad import mark_sensitive
2-
from datalad.api import Dataset
32
from ...utils import create_tree
43

4+
import pytest
5+
6+
dl = pytest.importorskip('datalad.api')
7+
58

69
def test_mark_sensitive(tmpdir):
7-
ds = Dataset(str(tmpdir)).create(force=True)
10+
ds = dl.Dataset(str(tmpdir)).create(force=True)
811
create_tree(
912
str(tmpdir),
1013
{

0 commit comments

Comments
 (0)