Browse Source

Put the django migration handler in dryrun (simulation) mode for EM tests

Yann Weber 9 years ago
parent
commit
c37a5b5425
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      EditorialModel/test/test_model.py

+ 2
- 2
EditorialModel/test/test_model.py View File

@@ -19,7 +19,7 @@ class TestModel(unittest.TestCase):
19 19
         model = Model(EmBackendJson('EditorialModel/test/me.json'))
20 20
         self.assertTrue(isinstance(model, Model))
21 21
 
22
-        model = Model(EmBackendJson('EditorialModel/test/me.json'), migration_handler=DjangoMigrationHandler('LodelTestInstance', debug=True))
22
+        model = Model(EmBackendJson('EditorialModel/test/me.json'), migration_handler=DjangoMigrationHandler('LodelTestInstance', debug=True, dryrun=True))
23 23
         self.assertTrue(isinstance(model, Model))
24 24
 
25 25
     def test_components(self):
@@ -61,4 +61,4 @@ class TestModel(unittest.TestCase):
61 61
         cl_l[0].modify_rank(1)
62 62
 
63 63
         self.assertEqual(hash(me1), hash(me2), "After doing sames modifications in the two models the hashes differs")
64
-        self.assertTrue(me1.__eq__(me2))
64
+        self.assertTrue(me1.__eq__(me2))

Loading…
Cancel
Save