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
 from lodel.editorial_model.model import EditorialModel
10
 from lodel.editorial_model.model import EditorialModel
11
 from lodel.editorial_model.components import *
11
 from lodel.editorial_model.components import *
12
 from lodel.editorial_model.exceptions import *
12
 from lodel.editorial_model.exceptions import *
13
+from lodel.settings import Settings
13
 
14
 
14
 class XmlFileTestCase(unittest.TestCase):
15
 class XmlFileTestCase(unittest.TestCase):
15
     
16
     
203
 
204
 
204
     def test_em_test(self):
205
     def test_em_test(self):
205
         """ Testing xmlfile with the test editorial model """
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
         emmodel.save(xmlfile, filename=self.tmpfile)
209
         emmodel.save(xmlfile, filename=self.tmpfile)
210
         emmodel.save(xmlfile, filename = 'empick.xml')
210
         emmodel.save(xmlfile, filename = 'empick.xml')

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

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

Loading…
Cancel
Save