Anim: tests, load factory-startup homefile in unit tests

Use `bpy.ops.wm.read_homefile(use_factory_startup=True)` to load the
default 'homefile'. Otherwise Blender will load the saved-as-default file,
which can be quite different from the default startup file.
This commit is contained in:
Sybren A. Stüvel 2024-01-02 15:38:24 +01:00
parent 9b3699db67
commit bb7468260c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class BoneCollectionTest(unittest.TestCase):
arm: bpy.types.Armature
def setUp(self):
bpy.ops.wm.read_homefile()
bpy.ops.wm.read_homefile(use_factory_startup=True)
self.arm_ob, self.arm = self.create_armature()
def create_armature(self) -> tuple[bpy.types.Object, bpy.types.Armature]: