From 81978594a89a2e53c3d6626f51dfa85e94d6811d Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 6 Sep 2021 10:56:02 +0200 Subject: [PATCH] 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. --- tests/python/bl_blendfile_io.py | 2 +- tests/python/bl_blendfile_liblink.py | 2 +- tests/python/bl_blendfile_library_overrides.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: