Cleanup: format tests

This commit is contained in:
Campbell Barton
2024-09-05 12:47:32 +10:00
parent 07a336c874
commit 4a9d67df0e
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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