Cleanup: format tests
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user