Skip to content

Commit 84c9d9e

Browse files
committed
also skip test_heuristics when testing outofsource
1 parent 0734f60 commit 84c9d9e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

debian/patches/deb_temp_pointtotestsdirs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,22 @@
44
[pytest]
55
addopts = --doctest-modules
66
+testpaths = heuristics tests
7+
--- a/tests/test_heuristics.py
8+
+++ b/tests/test_heuristics.py
9+
@@ -16,6 +16,9 @@ try:
10+
except ImportError: # pragma: no cover
11+
Dataset = None
12+
13+
+if not os.path.exists(os.path.join(os.path.dirname(__file__), os.path.pardir, 'heuristics')):
14+
+ from unittest import SkipTest
15+
+ raise SkipTest("We are testing out of source, no heuristics directory available")
16+
17+
def test_smoke_converall(tmpdir):
18+
heudiconv.main(
19+
@@ -103,4 +106,4 @@ def test_ls(stdout):
20+
heudiconv.main(args)
21+
out = stdout.getvalue()
22+
assert 'StudySessionInfo(locator=' in out
23+
- assert 'Halchenko/Yarik/950_bids_test4' in out
24+
\ No newline at end of file
25+
+ assert 'Halchenko/Yarik/950_bids_test4' in out

0 commit comments

Comments
 (0)