diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 03:15:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:59:16 +0300 |
commit | 41d2d6da0c96d351b47acb64d3e0decdba16cb16 (patch) | |
tree | 8f955ed71d907ab9f7ee97627a9a7c91192d139a /tests/python/bl_animation_fcurves.py | |
parent | bab9de2a52929fe2b45ecddb1eb09da3378e303b (diff) |
Cleanup: pep8 (indentation, spacing, long lines)
Diffstat (limited to 'tests/python/bl_animation_fcurves.py')
-rw-r--r-- | tests/python/bl_animation_fcurves.py | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/python/bl_animation_fcurves.py b/tests/python/bl_animation_fcurves.py index 432cfa5f3ab..b5772b8d335 100644 --- a/tests/python/bl_animation_fcurves.py +++ b/tests/python/bl_animation_fcurves.py @@ -39,38 +39,38 @@ class FCurveEvaluationTest(unittest.TestCase): 'Test dir %s should exist' % self.testdir) def test_fcurve_versioning_291(self): - # See D8752. - bpy.ops.wm.open_mainfile(filepath=str(self.testdir / "fcurve-versioning-291.blend")) - cube = bpy.data.objects['Cube'] - fcurve = cube.animation_data.action.fcurves.find('location', index=0) - - self.assertAlmostEqual(0.0, fcurve.evaluate(1)) - self.assertAlmostEqual(0.019638698548078537, fcurve.evaluate(2)) - self.assertAlmostEqual(0.0878235399723053, fcurve.evaluate(3)) - self.assertAlmostEqual(0.21927043795585632, fcurve.evaluate(4)) - self.assertAlmostEqual(0.41515052318573, fcurve.evaluate(5)) - self.assertAlmostEqual(0.6332430243492126, fcurve.evaluate(6)) - self.assertAlmostEqual(0.8106040954589844, fcurve.evaluate(7)) - self.assertAlmostEqual(0.924369215965271, fcurve.evaluate(8)) - self.assertAlmostEqual(0.9830065965652466, fcurve.evaluate(9)) - self.assertAlmostEqual(1.0, fcurve.evaluate(10)) + # See D8752. + bpy.ops.wm.open_mainfile(filepath=str(self.testdir / "fcurve-versioning-291.blend")) + cube = bpy.data.objects['Cube'] + fcurve = cube.animation_data.action.fcurves.find('location', index=0) + + self.assertAlmostEqual(0.0, fcurve.evaluate(1)) + self.assertAlmostEqual(0.019638698548078537, fcurve.evaluate(2)) + self.assertAlmostEqual(0.0878235399723053, fcurve.evaluate(3)) + self.assertAlmostEqual(0.21927043795585632, fcurve.evaluate(4)) + self.assertAlmostEqual(0.41515052318573, fcurve.evaluate(5)) + self.assertAlmostEqual(0.6332430243492126, fcurve.evaluate(6)) + self.assertAlmostEqual(0.8106040954589844, fcurve.evaluate(7)) + self.assertAlmostEqual(0.924369215965271, fcurve.evaluate(8)) + self.assertAlmostEqual(0.9830065965652466, fcurve.evaluate(9)) + self.assertAlmostEqual(1.0, fcurve.evaluate(10)) def test_fcurve_extreme_handles(self): - # See D8752. - bpy.ops.wm.open_mainfile(filepath=str(self.testdir / "fcurve-extreme-handles.blend")) - cube = bpy.data.objects['Cube'] - fcurve = cube.animation_data.action.fcurves.find('location', index=0) - - self.assertAlmostEqual(0.0, fcurve.evaluate(1)) - self.assertAlmostEqual(0.004713400732725859, fcurve.evaluate(2)) - self.assertAlmostEqual(0.022335870191454887, fcurve.evaluate(3)) - self.assertAlmostEqual(0.06331237405538559, fcurve.evaluate(4)) - self.assertAlmostEqual(0.16721539199352264, fcurve.evaluate(5)) - self.assertAlmostEqual(0.8327845335006714, fcurve.evaluate(6)) - self.assertAlmostEqual(0.9366875886917114, fcurve.evaluate(7)) - self.assertAlmostEqual(0.9776642322540283, fcurve.evaluate(8)) - self.assertAlmostEqual(0.9952865839004517, fcurve.evaluate(9)) - self.assertAlmostEqual(1.0, fcurve.evaluate(10)) + # See D8752. + bpy.ops.wm.open_mainfile(filepath=str(self.testdir / "fcurve-extreme-handles.blend")) + cube = bpy.data.objects['Cube'] + fcurve = cube.animation_data.action.fcurves.find('location', index=0) + + self.assertAlmostEqual(0.0, fcurve.evaluate(1)) + self.assertAlmostEqual(0.004713400732725859, fcurve.evaluate(2)) + self.assertAlmostEqual(0.022335870191454887, fcurve.evaluate(3)) + self.assertAlmostEqual(0.06331237405538559, fcurve.evaluate(4)) + self.assertAlmostEqual(0.16721539199352264, fcurve.evaluate(5)) + self.assertAlmostEqual(0.8327845335006714, fcurve.evaluate(6)) + self.assertAlmostEqual(0.9366875886917114, fcurve.evaluate(7)) + self.assertAlmostEqual(0.9776642322540283, fcurve.evaluate(8)) + self.assertAlmostEqual(0.9952865839004517, fcurve.evaluate(9)) + self.assertAlmostEqual(1.0, fcurve.evaluate(10)) def main(): |