Fix integration tests on macOS/Windows (#468)

This commit is contained in:
Adam J. Stewart 2022-03-19 10:30:20 -05:00 коммит произвёл GitHub
Родитель 3d1a1e9b08
Коммит ed402a04c8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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: