From 224e623e3c9ead4144afde6f2ae0e1de795b1a91 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 23 Sep 2023 21:14:12 +1000 Subject: [PATCH] Fix bf_animation_fcurves tests failing depending on preferences User preferences could cause this test to fail, tests should never read the users configuration. --- tests/python/bl_animation_fcurves.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/bl_animation_fcurves.py b/tests/python/bl_animation_fcurves.py index 48af59d898d..0febdd48c06 100644 --- a/tests/python/bl_animation_fcurves.py +++ b/tests/python/bl_animation_fcurves.py @@ -171,7 +171,7 @@ def get_view3d_context(): class KeyframeInsertTest(AbstractAnimationTest, unittest.TestCase): def setUp(self): super().setUp() - bpy.ops.wm.read_homefile() + bpy.ops.wm.read_homefile(use_factory_startup=True) def test_keyframe_insertion_basic(self): bpy.ops.mesh.primitive_monkey_add() @@ -264,7 +264,7 @@ class KeyframeInsertTest(AbstractAnimationTest, unittest.TestCase): class KeyframeDeleteTest(AbstractAnimationTest, unittest.TestCase): def setUp(self): super().setUp() - bpy.ops.wm.read_homefile() + bpy.ops.wm.read_homefile(use_factory_startup=True) def test_keyframe_deletion_basic(self): bpy.ops.mesh.primitive_monkey_add()