Skip to content

Commit 0fb0c2f

Browse files
committed
Adds unittest to check "time" in the right position in dicominfo.tsv
1 parent 74d55d5 commit 0fb0c2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

heudiconv/tests/test_main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ def test_cache(tmpdir):
283283
assert (cachedir / 'S01.auto.txt').exists()
284284
assert (cachedir / 'S01.edit.txt').exists()
285285

286+
# check dicominfo has "time" as last column:
287+
with open(cachedir / 'dicominfo.tsv', 'r') as f:
288+
cols = f.readline().split()
289+
assert cols[26] == "time"
290+
286291

287292
def test_no_etelemetry():
288293
# smoke test at large - just verifying that no crash if no etelemetry

0 commit comments

Comments
 (0)