mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-21 05:09:16 +01:00
Modify conf path
This commit is contained in:
parent
9b5ba54a1e
commit
28d7c20d44
1 changed files with 2 additions and 2 deletions
|
|
@ -14,14 +14,14 @@ class SettingsTestCase(unittest.TestCase):
|
|||
|
||||
def test_init(self):
|
||||
with self.assertRaises(RuntimeError):
|
||||
Settings('tests/tests_conf.d')
|
||||
Settings('conf.d')
|
||||
|
||||
#@unittest.skip("This tests doesn't pass anymore, but I do not understand why it should pass")
|
||||
def test_set(self):
|
||||
|
||||
Settings.set('lodel2.editorialmodel.emfile','test ok', dummy_validator)
|
||||
Settings.set('lodel2.editorialmodel.editormode','test ok', dummy_validator)
|
||||
loader = SettingsLoader('tests/tests_conf.d')
|
||||
loader = SettingsLoader('conf.d')
|
||||
option = loader.getoption('lodel2.editorialmodel','emfile', dummy_validator)
|
||||
option = loader.getoption('lodel2.editorialmodel','editormode', dummy_validator)
|
||||
self.assertEqual(option , 'test ok')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue