diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:47:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:55:02 +0300 |
commit | 63fcbfc3a7325d79b9e916457d64c302ddfeadfa (patch) | |
tree | f194e16441c06af61a2c34ef6dc119ac2c98f9a3 /tests | |
parent | 9dde3e42a7c5bc5f7896fd30e2b3a5859d6857bf (diff) |
RNA: naming, user-preferences -> preferences
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_load_addons.py | 6 | ||||
-rw-r--r-- | tests/python/bl_load_py_modules.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py index e404e2340ce..d54d5c3c45f 100644 --- a/tests/python/bl_load_addons.py +++ b/tests/python/bl_load_addons.py @@ -64,7 +64,7 @@ def addon_modules_sorted(): def disable_addons(): # first disable all - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons for mod_name in list(addons.keys()): addon_utils.disable(mod_name, default_set=True) assert(bool(addons) is False) @@ -75,7 +75,7 @@ def test_load_addons(): disable_addons() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons addons_fail = [] @@ -97,7 +97,7 @@ def test_load_addons(): def reload_addons(do_reload=True, do_reverse=True): modules = addon_modules_sorted() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons disable_addons() diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py index b7b0db76b63..be7f426d993 100644 --- a/tests/python/bl_load_py_modules.py +++ b/tests/python/bl_load_py_modules.py @@ -104,7 +104,7 @@ def source_list(path, filename_check=None): def load_addons(): modules = addon_modules_sorted() - addons = bpy.context.user_preferences.addons + addons = bpy.context.preferences.addons # first disable all for mod_name in list(addons.keys()): |