зеркало из https://github.com/microsoft/torchgeo.git
Entire Chesapeake13 test needs to be skipped for missing zipfile_deflate64
This commit is contained in:
Родитель
a543c24ec4
Коммит
af389759c3
|
@ -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)
|
||||
|
|
|
@ -43,9 +43,6 @@ class TestBYOLTask:
|
|||
],
|
||||
)
|
||||
def test_trainer(self, name: str, classname: Type[LightningDataModule]) -> None:
|
||||
if name == "chesapeake_cvpr_7":
|
||||
pytest.importorskip("zipfile_deflate64")
|
||||
|
||||
conf = OmegaConf.load(os.path.join("conf", "task_defaults", name + ".yaml"))
|
||||
conf_dict = OmegaConf.to_object(conf.experiment)
|
||||
conf_dict = cast(Dict[Any, Dict[Any, Any]], conf_dict)
|
||||
|
|
Загрузка…
Ссылка в новой задаче