diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-17 11:50:15 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-17 11:50:15 +0200 |
commit | a3dfd09a8d560f6e6591de2e1de95e82ed2ddce3 (patch) | |
tree | c3ebfd206a532a91300e69ac04c6229abf615ba5 /tests/manager | |
parent | fixed last commit (diff) | |
download | pyload-a3dfd09a8d560f6e6591de2e1de95e82ed2ddce3.tar.xz |
improved inputTypes, config api
Diffstat (limited to 'tests/manager')
-rw-r--r-- | tests/manager/test_configManager.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/manager/test_configManager.py b/tests/manager/test_configManager.py index 97b43dd66..ca572bf20 100644 --- a/tests/manager/test_configManager.py +++ b/tests/manager/test_configManager.py @@ -5,15 +5,16 @@ from collections import defaultdict from nose.tools import raises -from tests.helper.Stubs import Core +from tests.helper.Stubs import Core, adminUser, normalUser from pyload.Api import InvalidConfigSection from pyload.database import DatabaseBackend from pyload.config.ConfigParser import ConfigParser from pyload.config.ConfigManager import ConfigManager +from pyload.utils import primary_uid -adminUser = None -normalUser = 1 +adminUser = primary_uid(adminUser) +normalUser = primary_uid(normalUser) class TestConfigManager(TestCase): @@ -36,7 +37,7 @@ class TestConfigManager(TestCase): def addConfig(self): self.config.addConfigSection("plugin", "Name", "desc", "something", - [("value", "str", "label", "desc", "default")]) + [("value", "str", "label", "default")]) def test_db(self): @@ -115,7 +116,7 @@ class TestConfigManager(TestCase): def test_get_section(self): self.addConfig() - assert self.config.getSection("plugin")[0].name == "Name" + self.assertEqual(self.config.getSection("plugin")[0].label, "Name") # TODO: more save tests are needed def test_saveValues(self): |