Tests: bpy props: Add systematic tests for non-array types.

Fairly basic tests still, would need to be extended to check invalid
cases handling too.

Pull Request: https://projects.blender.org/blender/blender/pulls/145136
This commit is contained in:
Bastien Montagne
2025-08-25 18:47:37 +02:00
committed by Bastien Montagne
parent f4421dfc8e
commit 8bb8bff4bf
4 changed files with 343 additions and 0 deletions

View File

@@ -254,6 +254,11 @@ class TestIdPropertyUIData(TestHelper, unittest.TestCase):
self.assertEqual(self.id.path_resolve('["%s"]' % bpy.utils.escape_identifier(self.key_id)), 'A')
# NOTE: the tests below are fairly deep checks on expected consistency in the py-defined dynamic RNA properties,
# between their python representations (as RNA properties) and their underlying (IDProperty-based) storage.
# See `bl_pyapi_prop.py` and `bl_pyapi_prop_array.py` for more basic but systematic testing
# of all `bpy.props`-defined property types.
# Check statically typed underlying IDProperties storage for dynamic RNA properties.
class TestIdPropertyDynamicRNA(TestHelper, unittest.TestCase):