Skip to content

Commit

Permalink
Chesapeake: skip all tests if zipfile_deflate64 missing (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored Mar 20, 2022
1 parent 490666e commit 2cba0fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/datasets/test_chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ def download_url(url: str, root: str, *args: str, **kwargs: str) -> None:


class TestChesapeake13:
pytest.importorskip("zipfile_deflate64")

@pytest.fixture
def dataset(self, monkeypatch: MonkeyPatch, tmp_path: Path) -> Chesapeake13:
pytest.importorskip("zipfile_deflate64")
monkeypatch.setattr(torchgeo.datasets.chesapeake, "download_url", download_url)
md5 = "fe35a615b8e749b21270472aa98bb42c"
monkeypatch.setattr(Chesapeake13, "md5", md5)
Expand Down

0 comments on commit 2cba0fe

Please sign in to comment.