@@ -27,9 +27,9 @@ def test_minimal_valid_h5ad(self):
2727 good_input .validate (), "expect known good file to open with scanpy"
2828 )
2929
30- def test_truncated_h5ad (self ):
30+ def test_truncated_anndata (self ):
3131 truncated_input = H5adIngestor (
32- "../tests/data/h5ad/bad.h5ad " ,
32+ "../tests/data/h5ad/bad.h5 " ,
3333 "addedfeed000000000000000" ,
3434 "dec0dedfeed0000000000000" ,
3535 )
@@ -38,14 +38,14 @@ def test_truncated_h5ad(self):
3838 # an exception before assertRaises gets called
3939 self .assertRaisesRegex (
4040 ValueError ,
41- "Scanpy cannot read file, \" ../tests/data/h5ad/bad.h5ad \" ." ,
41+ "Scanpy cannot read file, \" ../tests/data/h5ad/bad.h5 \" ." ,
4242 lambda : truncated_input .obtain_adata (),
4343 )
4444 self .assertFalse (truncated_input .validate ())
4545
46- def test_input_not_h5ad (self ):
46+ def test_input_bad_suffix (self ):
4747 bad_input = H5adIngestor (
48- "../tests/data/h5ad/bad.h5 " ,
48+ "../tests/data/h5ad/bad.foo " ,
4949 "addedfeed000000000000000" ,
5050 "dec0dedfeed0000000000000" ,
5151 )
@@ -54,7 +54,7 @@ def test_input_not_h5ad(self):
5454 # an exception before assertRaises gets called
5555 self .assertRaisesRegex (
5656 ValueError ,
57- "Unsupported file format. Allowed file MIME types are: application/x- hdf5" ,
57+ "File type not detected for ../tests/data/h5ad/bad.foo, expected file endings are: .h5ad .h5 . hdf5" ,
5858 lambda : bad_input .obtain_adata (),
5959 )
6060 self .assertFalse (bad_input .validate ())
0 commit comments