From 744bffada678eab9f165db50ac4cb02d034904ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 9 Feb 2023 12:44:49 +0100 Subject: [PATCH] python: compact trade.AbstractImporter image tests a bit. --- src/python/magnum/test/test_trade.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/python/magnum/test/test_trade.py b/src/python/magnum/test/test_trade.py index 891390e..72e6cad 100644 --- a/src/python/magnum/test/test_trade.py +++ b/src/python/magnum/test/test_trade.py @@ -596,13 +596,10 @@ class Importer(unittest.TestCase): importer.mesh_count with self.assertRaisesRegex(AssertionError, "no file opened"): importer.mesh_level_count(0) - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.mesh_for_name('') - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.mesh_name(0) - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.mesh(0) with self.assertRaisesRegex(AssertionError, "no file opened"): @@ -614,28 +611,24 @@ class Importer(unittest.TestCase): importer.image2d_count with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image3d_count - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image1d_level_count(0) with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image2d_level_count(0) with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image3d_level_count(0) - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image1d_for_name('') with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image2d_for_name('') with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image3d_for_name('') - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image1d_name(0) with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image2d_name(0) with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image3d_name(0) - with self.assertRaisesRegex(AssertionError, "no file opened"): importer.image1d(0) with self.assertRaisesRegex(AssertionError, "no file opened"):