diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 12:14:46 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 12:14:46 +0300 |
commit | 910f16576d71f9a3fc9db4c66b573bfa84baf8b9 (patch) | |
tree | 75f90f262c2518d39f3289df848a00234f1ad1d0 | |
parent | a35a66f702f613ce405fdb25438b8a1eccbb2278 (diff) |
Unittest: refresh blender between tests
-rw-r--r-- | tests/python/bl_render_layer.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/python/bl_render_layer.py b/tests/python/bl_render_layer.py index 93318d6eb31..e0b1711c9dc 100644 --- a/tests/python/bl_render_layer.py +++ b/tests/python/bl_render_layer.py @@ -198,9 +198,16 @@ class UnitsTesting(unittest.TestCase): @classmethod def setUpClass(cls): + """Runs once""" cls.pretest_import_blendfile() cls.pretest_parsing() + @classmethod + def setUp(cls): + """Runs once per test""" + import bpy + bpy.ops.wm.read_factory_settings() + def path_exists(self, filepath): import os self.assertTrue( |