Fix bf_animation_fcurves tests failing depending on preferences

User preferences could cause this test to fail,
tests should never read the users configuration.
This commit is contained in:
Campbell Barton 2023-09-23 21:14:12 +10:00
parent d4dbbab5d9
commit 224e623e3c
1 changed files with 2 additions and 2 deletions

View File

@ -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()