From 51785945f506ec59072019f13d3ca07e7759e0e8 Mon Sep 17 00:00:00 2001 From: Constantin Pape Date: Wed, 24 Jan 2024 19:44:39 +0100 Subject: [PATCH] Fix test --- test/test_image_data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_image_data.py b/test/test_image_data.py index f985662..45cbf80 100644 --- a/test/test_image_data.py +++ b/test/test_image_data.py @@ -244,7 +244,7 @@ def test_numpy(self): resolution=(1, 1, 1), scale_factors=scales, chunks=(64, 64, 64), tmp_folder=self.tmp_folder, target="local", max_jobs=self.max_jobs, - description=description) + description="Lorem ipsum.") self.check_data(os.path.join(self.root, self.dataset_name), im_name) def test_with_view(self): @@ -333,7 +333,8 @@ def check_data(self, dataset_folder, name): # check the vew views = metadata["views"] self.assertIn(name, views) - mobie.validation.validate_view_metadata(name, views[name]) + view = views[name] + mobie.validation.validate_view_metadata(view, sources=sources, dataset_folder=dataset_folder) if __name__ == "__main__":