Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jan 1, 2022
1 parent 7f16553 commit 6daa4d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/samplers/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def test_roi(self) -> None:
@pytest.mark.parametrize("num_workers", [0, 1, 2])
def test_dataloader(self, sampler: RandomBatchGeoSampler, num_workers: int) -> None:
ds = CustomGeoDataset()
dl = DataLoader(ds, batch_sampler=sampler, num_workers=num_workers)
dl = DataLoader(
ds, batch_sampler=sampler, num_workers=num_workers, collate_fn=stack_samples
)
for _ in dl:
continue
8 changes: 6 additions & 2 deletions tests/samplers/test_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def test_roi(self) -> None:
@pytest.mark.parametrize("num_workers", [0, 1, 2])
def test_dataloader(self, sampler: RandomGeoSampler, num_workers: int) -> None:
ds = CustomGeoDataset()
dl = DataLoader(ds, sampler=sampler, num_workers=num_workers)
dl = DataLoader(
ds, sampler=sampler, num_workers=num_workers, collate_fn=stack_samples
)
for _ in dl:
continue

Expand Down Expand Up @@ -147,6 +149,8 @@ def test_roi(self) -> None:
@pytest.mark.parametrize("num_workers", [0, 1, 2])
def test_dataloader(self, sampler: GridGeoSampler, num_workers: int) -> None:
ds = CustomGeoDataset()
dl = DataLoader(ds, sampler=sampler, num_workers=num_workers)
dl = DataLoader(
ds, sampler=sampler, num_workers=num_workers, collate_fn=stack_samples
)
for _ in dl:
continue

0 comments on commit 6daa4d6

Please sign in to comment.