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:
Jesse Yurkovich
2025-10-14 22:35:54 +02:00
committed by Jesse Yurkovich
parent 52e169b59c
commit 024f396d06
15 changed files with 16 additions and 16 deletions

View File

@@ -388,7 +388,7 @@
}
// Makes sure that the html elements for a specific row (and all its parents) have been created.
// This data is gnerated lazily to improve start-up time.
// This data is generated lazily to improve start-up time.
function ensure_dom_for_row(row) {
if (row.dom_elem) {
return;

View File

@@ -34,7 +34,7 @@ SIMPLE TESTS
Rotation
Scale
HIERARCY
HIERARCHY
Parent_Child
Parent_Multiple Child

View File

@@ -44,7 +44,7 @@ class TestSpec:
op: string - name of a function in bpy.ops.mesh
test_obj: string - name of the object to apply the test to
expected_obj: string - name of the object that has the expected result
select: string - should be V, E, or F followed by space seperated indices of desired selection
select: string - should be V, E, or F followed by space separated indices of desired selection
params: string - space-separated name=val pairs giving operator arguments
"""

View File

@@ -172,7 +172,7 @@ class BPYRNATest(api.Test):
def generate(env):
return [
BPYRNATest("ID Instance Access", _run_id_instance_access, 10000 * 1000),
BPYRNATest("Static RNA Stuct Instance Access", _run_static_subdata_instance_access, 10000 * 1000),
BPYRNATest("Static RNA Struct Instance Access", _run_static_subdata_instance_access, 10000 * 1000),
BPYRNATest("IDProperty Access", _run_idproperty_access, 10000 * 1000),
BPYRNATest("Py-Defined Struct Register", _run_runtime_group_register_access, 100 * 1000,
{"do_register": True}),

View File

@@ -186,7 +186,7 @@ class TestLibraryOverridesComplex(TestHelper):
collection_sub = bpy.data.collections.new(self.__class__.DATA_NAME_SAMENAME_CONTAINER)
collection_container.children.link(collection_sub)
# 'Samename' objects are purposedly not added to the collection here.
# 'Samename' objects are purposely not added to the collection here.
# Sub-container collections are empty by default.
collection_subcontainer_0 = bpy.data.collections.new(self.__class__.DATA_NAME_SUBCONTAINER_0)

View File

@@ -301,7 +301,7 @@ def argparse_create():
import argparse
# When --help or no args are given, print this help
description = "Test basic realtionship info of loaded data."
description = "Test basic relationship info of loaded data."
parser = argparse.ArgumentParser(description=description)
parser.add_argument(
"--src-test-dir",

View File

@@ -51,7 +51,7 @@ class TestHelper(unittest.TestCase):
class TestBlendLibLinkHelper(TestHelper):
"""
Generate relatively complex data layout accross several blendfiles.
Generate relatively complex data layout across several blendfiles.
Useful for testing link/append/etc., but also data relationships e.g.
"""

View File

@@ -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

View File

@@ -14,7 +14,7 @@ import bpy
def check_loc_rot_scale(self, bone, exp_bone):
# Check if posistions are the same
# Check if positions are the same
self.assertEqualVector(
bone.head, exp_bone.head, "Head position", bone.name)
self.assertEqualVector(

View File

@@ -20,7 +20,7 @@ def as_float_32(f):
def repr_float_precision(f, round_fn):
"""
Get's the value which was most likely entered by a human in C.
Gets the value which was most likely entered by a human in C.
Needed since Python will show trailing precision from a 32bit float.
"""

View File

@@ -108,7 +108,7 @@ class TestRnaAncestors(unittest.TestCase):
# Do not error for now. Only ensure that if there is a rna_ancestors array, it is valid.
return
if repr(rna_ancestors[0]) != ancestors_sub[0]:
# Do not error for now. There are valid cases wher the data is 'rebased' on a new 'root' ID.
# Do not error for now. There are valid cases where the data is 'rebased' on a new 'root' ID.
return
if repr(p_data) in ancestors_sub:
# Loop back onto itself, skip.

View File

@@ -282,7 +282,7 @@ def main():
report.set_fail_threshold(0.032)
# Layer mixing is different between SVM and OSL, so a few tests have
# noticably different noise causing OSL Principled BSDF tests to fail.
# noticeably different noise causing OSL Principled BSDF tests to fail.
if ((args.osl == 'all') and (test_dir_name == 'principled_bsdf')):
report.set_fail_threshold(0.06)

View File

@@ -110,7 +110,7 @@ class BrushCurvesTest(unittest.TestCase):
# Note, depending on if the tests are run with asserts enabled or not, the test may fail before this point
# inside blender itself.
all_valid = all([not math.isinf(pos) and not math.isnan(pos) for pos in position_data])
self.assertTrue(all_valid, "All position componentes should be rational values")
self.assertTrue(all_valid, "All position components should be rational values")
def test_smooth_preset_curve_creates_valid_stroke(self):
bpy.context.tool_settings.sculpt.brush.curve_distance_falloff_preset = 'SMOOTH'

View File

@@ -263,7 +263,7 @@ class EventGenerate:
def text_unicode(self, text):
# Since the only purpose of this key-press is to enter text
# the key can be almost anything, use a key which isn't likely to be assigned ot any other action.
# the key can be almost anything, use a key which isn't likely to be assigned to any other action.
#
# If it were possible `EVT_UNKNOWNKEY` would be most correct
# as dead keys map to this and still enter text.

View File

@@ -139,7 +139,7 @@ def get_scene_collection(collection):
def get_scene_collections(scene):
"""Return all the scene collections ahd their data"""
"""Return all the scene collections and their data"""
master_collection = scene.get_pointer(b'collection')
return get_scene_collection(master_collection)