|
@@ -14,14 +14,16 @@ class SettingsTestCase(unittest.TestCase):
|
14
|
14
|
|
15
|
15
|
def test_init(self):
|
16
|
16
|
with self.assertRaises(RuntimeError):
|
17
|
|
- Settings('tests/settings/settings_tests_conf.d')
|
|
17
|
+ Settings('tests/tests_conf.d')
|
18
|
18
|
|
19
|
|
- @unittest.skip("This tests doesn't pass anymore, but I do not understand why it should pass")
|
|
19
|
+ #@unittest.skip("This tests doesn't pass anymore, but I do not understand why it should pass")
|
20
|
20
|
def test_set(self):
|
|
21
|
+
|
21
|
22
|
Settings.set('lodel2.editorialmodel.emfile','test ok', dummy_validator)
|
22
|
23
|
Settings.set('lodel2.editorialmodel.editormode','test ok', dummy_validator)
|
23
|
|
- loader = SettingsLoader('globconf.d')
|
|
24
|
+ loader = SettingsLoader('tests/tests_conf.d')
|
24
|
25
|
option = loader.getoption('lodel2.editorialmodel','emfile', dummy_validator)
|
|
26
|
+ option = loader.getoption('lodel2.editorialmodel','editormode', dummy_validator)
|
25
|
27
|
self.assertEqual(option , 'test ok')
|
26
|
28
|
option = loader.getoption('lodel2.editorialmodel','editormode', dummy_validator)
|
27
|
29
|
self.assertEqual(option, 'test ok')
|