Skip to content

Commit

Permalink
Adds unittest to check "time" in the right position in dicominfo.tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelasco committed Jan 8, 2021
1 parent 74d55d5 commit 0fb0c2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions heudiconv/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ def test_cache(tmpdir):
assert (cachedir / 'S01.auto.txt').exists()
assert (cachedir / 'S01.edit.txt').exists()

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


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

0 comments on commit 0fb0c2f

Please sign in to comment.