Unverified Commit 98465692 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

add tests for FakeData dataset (#3468)



* add tests for FakeData dataset

* improve skip reason
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent 4fcaee0f
......@@ -1261,5 +1261,19 @@ class SBDatasetTestCase(datasets_utils.ImageDatasetTestCase):
return f"2008_{idx:06d}"
class FakeDataTestCase(datasets_utils.ImageDatasetTestCase):
DATASET_CLASS = datasets.FakeData
FEATURE_TYPES = (PIL.Image.Image, torch.Tensor)
def dataset_args(self, tmpdir, config):
return ()
def inject_fake_data(self, tmpdir, config):
return config["size"]
def test_not_found_or_corrupted(self):
self.skipTest("The data is generated at creation and thus cannot be non-existent or corrupted.")
if __name__ == "__main__":
unittest.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment