Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
added test for invalid ASHS intracranial volume filename
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Aug 7, 2019
1 parent 5bff373 commit 612ca92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ashs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ def test_intracranial_volume_file_init(volume_file_path, expected_subject):
assert expected_subject == volume_file.subject


@pytest.mark.parametrize('volume_file_path', [
'_icv.txt',
'bert_ICV.txt',
'bert_icv.csv',
'bert_ICV.txt.zip',
])
def test_intracranial_volume_file_init_invalid_filename(volume_file_path):
with pytest.raises(Exception):
IntracranialVolumeFile(path=volume_file_path)


@pytest.mark.parametrize(('volume_file_path', 'expected_attrs'), [
('ashs/final/bert_left_heur_volumes.txt',
{'subject': 'bert', 'hemisphere': 'left', 'correction': None}),
Expand Down

0 comments on commit 612ca92

Please sign in to comment.