Skip to content

Commit

Permalink
fix test after Steph commit
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jan 16, 2025
1 parent efefc0b commit dcad301
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/integration/io/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def test_read_invalid_file(self):
path = Path(temp_dir) / "test.txt"
path.write_text("Not an NWB file")

with self.assertRaisesWith(ValueError,
f"Unable to read file: '{path}'. The file exists but is not recognized as "
"either a valid HDF5 or Zarr NWB file. Please ensure the file contains valid NWB data."):
read_nwb(path=path)
expected_message = (
f"Unable to read file: '{path}'. The file is not recognized as either a valid HDF5 or Zarr NWB file. "
"Please ensure the file exists and contains valid NWB data."
)

with self.assertRaisesWith(ValueError, expected_message):
read_nwb(path=path)

0 comments on commit dcad301

Please sign in to comment.