Explorar o código

fix remaining duplicate-code linter warnings

Fabian Peter Hammerle %!s(int64=4) %!d(string=hai) anos
pai
achega
5ca2e18dfa
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/freesurfer_test.py

+ 3 - 1
tests/freesurfer_test.py

@@ -122,9 +122,10 @@ def test_hippocampal_subfields_volume_file_init(volume_file_path, expected_attrs
         "bert/mri/lh.hippoSfVolumes-T1.v9.txt",
         "bert/mri/lh.hippoSfVolumes.v10.txt",
         "bert/mri/mh.hippoSfVolumes-T1.v10.txt",
+        "bert_left_corr_nogray_volumes.txt",
     ],
 )
-def test_hippocampal_subfields_volume_file_init_invalid(volume_file_path):
+def test_hippocampal_subfields_volume_file_init_invalid_path(volume_file_path):
     with pytest.raises(Exception):
         HippocampalSubfieldsVolumeFile(path=volume_file_path)
 
@@ -156,6 +157,7 @@ def test_hippocampal_subfields_volume_file_read_volumes_mm3(
     volume_file_path, expected_volumes
 ):
     volume_file = HippocampalSubfieldsVolumeFile(path=volume_file_path)
+    assert volume_file.t1_input
     assert expected_volumes == volume_file.read_volumes_mm3()