Browse Source

Modify conf path

prieto 8 years ago
parent
commit
28d7c20d44
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/settings/test_settings.py

+ 2
- 2
tests/settings/test_settings.py View File

14
     
14
     
15
     def test_init(self):
15
     def test_init(self):
16
         with self.assertRaises(RuntimeError):
16
         with self.assertRaises(RuntimeError):
17
-            Settings('tests/tests_conf.d')
17
+            Settings('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
     def test_set(self):
20
     def test_set(self):
21
 
21
 
22
         Settings.set('lodel2.editorialmodel.emfile','test ok', dummy_validator)
22
         Settings.set('lodel2.editorialmodel.emfile','test ok', dummy_validator)
23
         Settings.set('lodel2.editorialmodel.editormode','test ok', dummy_validator)
23
         Settings.set('lodel2.editorialmodel.editormode','test ok', dummy_validator)
24
-        loader = SettingsLoader('tests/tests_conf.d')
24
+        loader = SettingsLoader('conf.d')
25
         option = loader.getoption('lodel2.editorialmodel','emfile', dummy_validator)
25
         option = loader.getoption('lodel2.editorialmodel','emfile', dummy_validator)
26
         option = loader.getoption('lodel2.editorialmodel','editormode', dummy_validator)
26
         option = loader.getoption('lodel2.editorialmodel','editormode', dummy_validator)
27
         self.assertEqual(option , 'test ok')
27
         self.assertEqual(option , 'test ok')

Loading…
Cancel
Save