Skip to content

Commit

Permalink
Test ValueError on wrong filetype argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Dec 20, 2024
1 parent cb87a11 commit da8aac4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virtualizarr/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ def test_explicit_filetype(self, netcdf4_file):
with pytest.raises(ValueError):
open_virtual_dataset(netcdf4_file, filetype="unknown")

with pytest.raises(ValueError):
open_virtual_dataset(netcdf4_file, filetype=ManifestArray)

Check warning on line 386 in virtualizarr/tests/test_backend.py

View check run for this annotation

Codecov / codecov/patch

virtualizarr/tests/test_backend.py#L385-L386

Added lines #L385 - L386 were not covered by tests

with pytest.raises(NotImplementedError):
open_virtual_dataset(netcdf4_file, filetype="grib")

Expand Down

0 comments on commit da8aac4

Please sign in to comment.