Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-04 09:43:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-04 09:43:12 +0300
commitef7efc375197e560da3c91153b21694f5bcb4a27 (patch)
tree603ca8e40f7ee847aa73053f8522d7d5fba7a692 /tests/python/bl_blendfile_io.py
parent753a2a34cea70b0ffc8d8e7c44def24ccd3b6fc9 (diff)
Tests: don't write thumbnails when running tests
Also replace WM_OT_read_factory_settings with WM_OT_read_homefile so the preferences don't have to be reloaded.
Diffstat (limited to 'tests/python/bl_blendfile_io.py')
-rw-r--r--tests/python/bl_blendfile_io.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/python/bl_blendfile_io.py b/tests/python/bl_blendfile_io.py
index 2c27b60f34e..38b3a93bbbc 100644
--- a/tests/python/bl_blendfile_io.py
+++ b/tests/python/bl_blendfile_io.py
@@ -15,7 +15,8 @@ class TestBlendFileSaveLoadBasic(TestHelper):
self.args = args
def test_save_load(self):
- bpy.ops.wm.read_factory_settings()
+ bpy.ops.wm.read_homefile(use_empty=True, use_factory_startup=True)
+
bpy.data.meshes.new("OrphanedMesh")
output_dir = self.args.output_dir
@@ -71,6 +72,9 @@ def argparse_create():
def main():
args = argparse_create().parse_args()
+ # Don't write thumbnails into the home directory.
+ bpy.context.preferences.filepaths.use_save_preview_images = False
+
for Test in TESTS:
Test(args).run_all_tests()