diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 03:10:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:59:16 +0300 |
commit | bab9de2a52929fe2b45ecddb1eb09da3378e303b (patch) | |
tree | cde61c5cb86dfad1c90aa414a8c7b1711ec25782 /tests | |
parent | 28ebe827e60c84ed4731a9f8aa701ccf2d8be0b0 (diff) |
Cleanup: pep8, blank lines
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_animation_fcurves.py | 1 | ||||
-rw-r--r-- | tests/python/bl_blendfile_io.py | 1 | ||||
-rw-r--r-- | tests/python/bl_blendfile_liblink.py | 1 | ||||
-rw-r--r-- | tests/python/cycles_render_tests.py | 1 | ||||
-rw-r--r-- | tests/python/eevee_render_tests.py | 1 | ||||
-rwxr-xr-x | tests/python/modules/global_report.py | 1 | ||||
-rw-r--r-- | tests/python/modules/mesh_test.py | 2 | ||||
-rwxr-xr-x | tests/python/modules/render_report.py | 1 |
8 files changed, 6 insertions, 3 deletions
diff --git a/tests/python/bl_animation_fcurves.py b/tests/python/bl_animation_fcurves.py index bacda5c1155..432cfa5f3ab 100644 --- a/tests/python/bl_animation_fcurves.py +++ b/tests/python/bl_animation_fcurves.py @@ -28,6 +28,7 @@ import unittest import bpy + class FCurveEvaluationTest(unittest.TestCase): @classmethod def setUpClass(cls): diff --git a/tests/python/bl_blendfile_io.py b/tests/python/bl_blendfile_io.py index ab06e313566..35b089f9bb2 100644 --- a/tests/python/bl_blendfile_io.py +++ b/tests/python/bl_blendfile_io.py @@ -44,7 +44,6 @@ class TestBlendFileSaveLoadBasic(TestHelper): assert(orig_data == read_data) - TESTS = ( TestBlendFileSaveLoadBasic, ) diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py index d1cc7efc7fd..70614c3502d 100644 --- a/tests/python/bl_blendfile_liblink.py +++ b/tests/python/bl_blendfile_liblink.py @@ -42,7 +42,6 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper): assert(orig_data == read_data) - TESTS = ( TestBlendLibLinkSaveLoadBasic, ) diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index cc949248ce6..3c597b39cb8 100644 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -43,6 +43,7 @@ def get_arguments(filepath, output_filepath): return args + def create_argparse(): parser = argparse.ArgumentParser() parser.add_argument("-blender", nargs="+") diff --git a/tests/python/eevee_render_tests.py b/tests/python/eevee_render_tests.py index a90d7730ace..2f66af2344f 100644 --- a/tests/python/eevee_render_tests.py +++ b/tests/python/eevee_render_tests.py @@ -8,6 +8,7 @@ import shutil import subprocess import sys + def setup(): import bpy diff --git a/tests/python/modules/global_report.py b/tests/python/modules/global_report.py index 8ed8551beb9..7e6172c345a 100755 --- a/tests/python/modules/global_report.py +++ b/tests/python/modules/global_report.py @@ -6,6 +6,7 @@ import glob import os import pathlib + def _write_html(output_dir): combined_reports = "" diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py index af0e78257d5..e1585aaa7a2 100644 --- a/tests/python/modules/mesh_test.py +++ b/tests/python/modules/mesh_test.py @@ -95,6 +95,7 @@ class PhysicsSpec: return "Physics Modifier: " + self.modifier_name + " of type " + self.modifier_type + \ " with parameters: " + str(self.modifier_parameters) + " with frame end: " + str(self.frame_end) + class OperatorSpec: """ Holds one operator and its parameters. @@ -281,7 +282,6 @@ class MeshTest: print("Created modifier '{}' of type '{}'.". format(physics_spec.modifier_name, physics_spec.modifier_type)) - for param_name in physics_spec.modifier_parameters: try: setattr(physics_setting, param_name, physics_spec.modifier_parameters[param_name]) diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py index b6cafc2ee24..9e0c8ad6509 100755 --- a/tests/python/modules/render_report.py +++ b/tests/python/modules/render_report.py @@ -34,6 +34,7 @@ BLACKLIST = ( # 'file_to_blacklist.blend', ) + def print_message(message, type=None, status=''): if type == 'SUCCESS': print(COLORS.GREEN, end="") |