Browse Source

Bugfix in xmfile translator tests (path problem)

Using the conf to load emtests.pickle
Yann Weber 8 years ago
parent
commit
63a85eb85c

BIN
examples/em_test.pickle View File


+ 2
- 2
tests/editorial_model/test_translator_xmlfile.py View File

@@ -10,6 +10,7 @@ from lodel.editorial_model.translator import xmlfile
10 10
 from lodel.editorial_model.model import EditorialModel
11 11
 from lodel.editorial_model.components import *
12 12
 from lodel.editorial_model.exceptions import *
13
+from lodel.settings import Settings
13 14
 
14 15
 class XmlFileTestCase(unittest.TestCase):
15 16
     
@@ -203,8 +204,7 @@ class XmlFileTestCase(unittest.TestCase):
203 204
 
204 205
     def test_em_test(self):
205 206
         """ Testing xmlfile with the test editorial model """
206
-        #emmodel = picklefile.load('tests/editorial_model.pickle')
207
-        emmodel = picklefile.load('tests/em_test.pickle')
207
+        emmodel = picklefile.load(Settings.editorialmodel.emfile)
208 208
 
209 209
         emmodel.save(xmlfile, filename=self.tmpfile)
210 210
         emmodel.save(xmlfile, filename = 'empick.xml')

+ 1
- 1
tests/tests_conf.d/lodel2.ini View File

@@ -11,7 +11,7 @@ context = False
11 11
 
12 12
 [lodel2.editorialmodel]
13 13
 groups = 
14
-emfile = editorial_model.pickle
14
+emfile = examples/em_test.pickle
15 15
 dyncode = leapi_dyncode.py
16 16
 editormode = True
17 17
 

Loading…
Cancel
Save