Skip to content

Commit

Permalink
Fix integration tests on macOS/Windows (microsoft#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored Mar 19, 2022
1 parent 53cfecc commit 457fc81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/samplers/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def __getitem__(self, query: BoundingBox) -> Dict[str, BoundingBox]:
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:
Expand Down
4 changes: 3 additions & 1 deletion tests/samplers/test_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def __getitem__(self, query: BoundingBox) -> Dict[str, BoundingBox]:
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:
Expand Down

0 comments on commit 457fc81

Please sign in to comment.