Browse Source

Path correction

prieto 8 years ago
parent
commit
ce9684e330
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      tests/settings/test_settings.py

+ 5
- 3
tests/settings/test_settings.py View File

@@ -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')

Loading…
Cancel
Save