Browse Source

python: update some test TODOs.

next
Vladimír Vondruš 3 years ago
parent
commit
12230c93b8
  1. 13
      src/python/magnum/test/test_trade.py

13
src/python/magnum/test/test_trade.py

@ -1493,8 +1493,9 @@ class Importer(unittest.TestCase):
# Asking for custom mesh attribute names should work even if not # Asking for custom mesh attribute names should work even if not
# opened, returns None # opened, returns None
# TODO once configuration is exposed, disable the JOINTS/WEIGHTS # TODO clean up once the compatibilitySkinningAttributes option is
# backwards compatibility to avoid this mess # gone (until then it'll still return different IDs, regardless of it
# being enabled)
if magnum.BUILD_DEPRECATED: if magnum.BUILD_DEPRECATED:
self.assertIsNone(importer.mesh_attribute_name(trade.MeshAttribute.CUSTOM(9))) self.assertIsNone(importer.mesh_attribute_name(trade.MeshAttribute.CUSTOM(9)))
else: else:
@ -1508,8 +1509,9 @@ class Importer(unittest.TestCase):
self.assertEqual(importer.mesh_for_name('Indexed mesh'), 0) self.assertEqual(importer.mesh_for_name('Indexed mesh'), 0)
# It should work after opening # It should work after opening
# TODO once configuration is exposed, disable the JOINTS/WEIGHTS # TODO clean up once the compatibilitySkinningAttributes option is
# backwards compatibility to avoid this mess # gone (until then it'll still return different IDs, regardless of it
# being enabled)
if magnum.BUILD_DEPRECATED: if magnum.BUILD_DEPRECATED:
self.assertEqual(importer.mesh_attribute_name(trade.MeshAttribute.CUSTOM(10)), "_CUSTOM_MATRIX_ATTRIBUTE") self.assertEqual(importer.mesh_attribute_name(trade.MeshAttribute.CUSTOM(10)), "_CUSTOM_MATRIX_ATTRIBUTE")
self.assertEqual(importer.mesh_attribute_for_name("_CUSTOM_MATRIX_ATTRIBUTE"), trade.MeshAttribute.CUSTOM(10)) self.assertEqual(importer.mesh_attribute_for_name("_CUSTOM_MATRIX_ATTRIBUTE"), trade.MeshAttribute.CUSTOM(10))
@ -1960,7 +1962,8 @@ class SceneConverter(unittest.TestCase):
def test_batch_add_mesh_not_supported(self): def test_batch_add_mesh_not_supported(self):
# TODO implement once there's a converter that doesn't support meshes # TODO implement once there's a converter that doesn't support meshes
# or has only in-place conversion # or has only in-place conversion (MeshOptimizerSceneConverter
# support this with begin())
pass pass
def test_batch_set_mesh_attribute_name(self): def test_batch_set_mesh_attribute_name(self):

Loading…
Cancel
Save