зеркало из https://github.com/microsoft/torchgeo.git
Fix integration tests on macOS/Windows (#468)
This commit is contained in:
Родитель
3d1a1e9b08
Коммит
ed402a04c8
|
@ -39,7 +39,9 @@ class CustomGeoDataset(GeoDataset):
|
|||
class TestBatchGeoSampler:
|
||||
@pytest.fixture(scope="class")
|
||||
def dataset(self) -> CustomGeoDataset:
|
||||
return CustomGeoDataset()
|
||||
ds = CustomGeoDataset()
|
||||
ds.index.insert(0, (0, 100, 200, 300, 400, 500))
|
||||
return ds
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def sampler(self) -> CustomBatchGeoSampler:
|
||||
|
|
|
@ -39,7 +39,9 @@ class CustomGeoDataset(GeoDataset):
|
|||
class TestGeoSampler:
|
||||
@pytest.fixture(scope="class")
|
||||
def dataset(self) -> CustomGeoDataset:
|
||||
return CustomGeoDataset()
|
||||
ds = CustomGeoDataset()
|
||||
ds.index.insert(0, (0, 100, 200, 300, 400, 500))
|
||||
return ds
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def sampler(self) -> CustomGeoSampler:
|
||||
|
|
Загрузка…
Ссылка в новой задаче