[Bf-blender-cvs] [81978594a89] master: Fix tests broken by rB58632a7f3c0f1be6.

Bastien Montagne noreply at git.blender.org
Mon Sep 6 10:57:35 CEST 2021


Commit: 81978594a89a2e53c3d6626f51dfa85e94d6811d
Author: Bastien Montagne
Date:   Mon Sep 6 10:56:02 2021 +0200
Branches: master
https://developer.blender.org/rB81978594a89a2e53c3d6626f51dfa85e94d6811d

Fix tests broken by rB58632a7f3c0f1be6.

Commits breaking RNA API should always run all tests, and do text search
in python code base to ensure everything is updated as needed.

===================================================================

M	tests/python/bl_blendfile_io.py
M	tests/python/bl_blendfile_liblink.py
M	tests/python/bl_blendfile_library_overrides.py

===================================================================

diff --git a/tests/python/bl_blendfile_io.py b/tests/python/bl_blendfile_io.py
index 38b3a93bbbc..4123f06b7c4 100644
--- a/tests/python/bl_blendfile_io.py
+++ b/tests/python/bl_blendfile_io.py
@@ -73,7 +73,7 @@ def main():
     args = argparse_create().parse_args()
 
     # Don't write thumbnails into the home directory.
-    bpy.context.preferences.filepaths.use_save_preview_images = False
+    bpy.context.preferences.filepaths.file_preview_type = 'NONE'
 
     for Test in TESTS:
         Test(args).run_all_tests()
diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py
index 1d076d66913..ac71fa85246 100644
--- a/tests/python/bl_blendfile_liblink.py
+++ b/tests/python/bl_blendfile_liblink.py
@@ -278,7 +278,7 @@ def main():
     args = argparse_create().parse_args()
 
     # Don't write thumbnails into the home directory.
-    bpy.context.preferences.filepaths.use_save_preview_images = False
+    bpy.context.preferences.filepaths.file_preview_type = 'NONE'
 
     for Test in TESTS:
         Test(args).run_all_tests()
diff --git a/tests/python/bl_blendfile_library_overrides.py b/tests/python/bl_blendfile_library_overrides.py
index b44e4d48564..3c7c77ce339 100644
--- a/tests/python/bl_blendfile_library_overrides.py
+++ b/tests/python/bl_blendfile_library_overrides.py
@@ -208,7 +208,7 @@ def main():
     args = argparse_create().parse_args()
 
     # Don't write thumbnails into the home directory.
-    bpy.context.preferences.filepaths.use_save_preview_images = False
+    bpy.context.preferences.filepaths.file_preview_type = 'NONE'
     bpy.context.preferences.experimental.use_override_templates = True
 
     for Test in TESTS:



More information about the Bf-blender-cvs mailing list