diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-05-24 21:44:02 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-05-24 21:44:02 +0200 |
commit | 29ac21c98b9733ab9cb967cc5ae51aa9b23bed19 (patch) | |
tree | 556a83da92c78074ec867b7d6520ad054e6e5c3c /tests | |
parent | moved common to utils package (diff) | |
download | pyload-29ac21c98b9733ab9cb967cc5ae51aa9b23bed19.tar.xz |
added production / devel mode to webui
Diffstat (limited to 'tests')
-rw-r--r-- | tests/helper/Stubs.py | 2 | ||||
-rw-r--r-- | tests/manager/test_configManager.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/helper/Stubs.py b/tests/helper/Stubs.py index f0e8d0614..4c7c178ed 100644 --- a/tests/helper/Stubs.py +++ b/tests/helper/Stubs.py @@ -18,7 +18,7 @@ from module.threads.BaseThread import BaseThread from module.config.ConfigParser import ConfigParser from module.network.RequestFactory import RequestFactory from module.PluginManager import PluginManager -from module.common.JsEngine import JsEngine +from module.utils.JsEngine import JsEngine from logging import log, DEBUG, INFO, WARN, ERROR diff --git a/tests/manager/test_configManager.py b/tests/manager/test_configManager.py index 8ab607a87..af473a0d2 100644 --- a/tests/manager/test_configManager.py +++ b/tests/manager/test_configManager.py @@ -117,6 +117,11 @@ class TestConfigManager(TestCase): self.addConfig() assert self.config.getSection("plugin")[0].name == "Name" + # TODO: more save tests are needed + def test_saveValues(self): + self.addConfig() + self.config.saveValues(adminUser, "plugin") + @raises(InvalidConfigSection) def test_restricted_access(self): self.config.get("general", "language", normalUser) |