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
path: root/tests
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-01-23 13:09:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-01-23 13:18:35 +0300
commit3ff3f563e57e43abeacd5bb4df66d8b6bec0c847 (patch)
tree434c29c530d5e2beb1b3d305227e9de2f37ded51 /tests
parent2dfe5e30ac43af0c65a7a89d8f6ebb79056eaab7 (diff)
PyAPI: don't adjust prefs when an fails to load
Recent addons commit meant that addons would be enabled even if they weren't found. This would give an error (which is fine), but also remove from preferences.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_load_addons.py4
-rw-r--r--tests/python/bl_load_py_modules.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py
index 716d08b16d6..227edf4164d 100644
--- a/tests/python/bl_load_addons.py
+++ b/tests/python/bl_load_addons.py
@@ -63,7 +63,7 @@ def test_load_addons():
for mod in modules:
mod_name = mod.__name__
print("\tenabling:", mod_name)
- addon_utils.enable(mod_name)
+ addon_utils.enable(mod_name, default_set=True)
if mod_name not in addons:
addons_fail.append(mod_name)
@@ -87,7 +87,7 @@ def reload_addons(do_reload=True, do_reverse=True):
for mod in modules:
mod_name = mod.__name__
print("\tenabling:", mod_name)
- addon_utils.enable(mod_name)
+ addon_utils.enable(mod_name, default_set=True)
assert(mod_name in addons)
for mod in modules:
diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py
index c0ec4ce5144..07905dfa4b4 100644
--- a/tests/python/bl_load_py_modules.py
+++ b/tests/python/bl_load_py_modules.py
@@ -74,7 +74,7 @@ def load_addons():
for mod in modules:
mod_name = mod.__name__
- addon_utils.enable(mod_name)
+ addon_utils.enable(mod_name, default_set=True)
assert(mod_name in addons)