mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: Fix typos in tests subdirectory
Fixes various typos Co-authored-by: luz paz Pull Request: https://projects.blender.org/blender/blender/pulls/148090
This commit is contained in:
parent
52e169b59c
commit
024f396d06
15 changed files with 16 additions and 16 deletions
|
|
@ -300,7 +300,7 @@ class TestIdPropertyDynamicRNA(TestHelper, unittest.TestCase):
|
|||
# PropertyGroup type always exists.
|
||||
self.assertTrue('dynrna_prop' in self.id.bl_system_properties_get())
|
||||
# However, the underlying idprop data for each property of the PropertyGroup
|
||||
# does not exist untill set through an RNA property access.
|
||||
# does not exist until set through an RNA property access.
|
||||
self.assertTrue(len(self.id.bl_system_properties_get()['dynrna_prop']) == 0)
|
||||
|
||||
self.id.dynrna_prop.string_prop = "Test String"
|
||||
|
|
@ -388,7 +388,7 @@ class TestIdPropertyDynamicRNA(TestHelper, unittest.TestCase):
|
|||
|
||||
# Raw-set back to default value.
|
||||
self.id.bl_system_properties_get()['dynrna_prop']['string_prop_transform'] = "test"
|
||||
# Now set_transform will return 12-char string, wich is also invalid and discarded.
|
||||
# Now set_transform will return 12-char string, which is also invalid and discarded.
|
||||
stderr, sys.stderr = sys.stderr, io.StringIO()
|
||||
self.id.dynrna_prop.string_prop_transform = "test!!"
|
||||
self.assertTrue("ValueError" in sys.stderr.getvalue() and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue