From 4a9d67df0ecd11f28646193c2c24ec6165ba8992 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Sep 2024 12:47:32 +1000 Subject: [PATCH] Cleanup: format tests --- tests/python/bl_blendfile_versioning.py | 4 ++-- tests/python/bl_mesh_modifiers.py | 2 +- tests/python/bl_pyapi_idprop.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/python/bl_blendfile_versioning.py b/tests/python/bl_blendfile_versioning.py index 0ca5a08689a..4da37acbb6c 100644 --- a/tests/python/bl_blendfile_versioning.py +++ b/tests/python/bl_blendfile_versioning.py @@ -143,8 +143,8 @@ def argparse_create(): def main(): args = argparse_create().parse_args() - assert(args.slice_range > 0) - assert(0 <= args.slice_index < args.slice_range) + assert args.slice_range > 0 + assert 0 <= args.slice_index < args.slice_range for Test in TESTS: Test(args).run_all_tests() diff --git a/tests/python/bl_mesh_modifiers.py b/tests/python/bl_mesh_modifiers.py index 3022583ffdc..f2d115a2888 100644 --- a/tests/python/bl_mesh_modifiers.py +++ b/tests/python/bl_mesh_modifiers.py @@ -47,7 +47,7 @@ def render_gl(context, filepath, shade): # stop to inspect! # if filepath == "test_cube_shell_solidify_subsurf_wp_wire": - # assert(0) + # assert False # else: # return diff --git a/tests/python/bl_pyapi_idprop.py b/tests/python/bl_pyapi_idprop.py index d2d2f9afa27..83a3ac451d7 100644 --- a/tests/python/bl_pyapi_idprop.py +++ b/tests/python/bl_pyapi_idprop.py @@ -265,9 +265,9 @@ class TestIdPropertyDynamicRNA(TestHelper, unittest.TestCase): def setUp(self): super().setUp() bpy.utils.register_class(self.TestDynRNAClass) - assert(type(self.id) == bpy.types.Scene) + assert type(self.id) == bpy.types.Scene bpy.types.Scene.dynrna_prop = bpy.props.PointerProperty(type=self.TestDynRNAClass) - assert(hasattr(self.id, "dynrna_prop")) + assert hasattr(self.id, "dynrna_prop") def tearDown(self): del bpy.types.Scene.dynrna_prop