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