Skip to content

Commit

Permalink
test registration of protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds authored Oct 6, 2024
1 parent e4ee603 commit e7c729a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ecmwfspec/tests/test_open_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import ecmwfspec
from ecmwfspec import xr_accessor # noqa: F401

def test_protocols() -> None:
"""Test that fsspec protocols are registered."""
protocols = fsspec.available_protocols()
assert "ec" in protocols, f"ec not found in {protocols}"
assert "ectmp" in protocols, f"ectmp not found in {protocols}"


def test_xr_accessor(patch_dir: Path, zarr_file: Path) -> None:
"""Test staging."""
Expand Down

0 comments on commit e7c729a

Please sign in to comment.