We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fcaee0 commit 9846569Copy full SHA for 9846569
test/test_datasets.py
@@ -1261,5 +1261,19 @@ def _file_stem(self, idx):
1261
return f"2008_{idx:06d}"
1262
1263
1264
+class FakeDataTestCase(datasets_utils.ImageDatasetTestCase):
1265
+ DATASET_CLASS = datasets.FakeData
1266
+ FEATURE_TYPES = (PIL.Image.Image, torch.Tensor)
1267
+
1268
+ def dataset_args(self, tmpdir, config):
1269
+ return ()
1270
1271
+ def inject_fake_data(self, tmpdir, config):
1272
+ return config["size"]
1273
1274
+ def test_not_found_or_corrupted(self):
1275
+ self.skipTest("The data is generated at creation and thus cannot be non-existent or corrupted.")
1276
1277
1278
if __name__ == "__main__":
1279
unittest.main()
0 commit comments