Roland Haroutiounian 9 years ago
parent
commit
063e202e60
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      EditorialModel/test/test_classes.py

+ 4
- 4
EditorialModel/test/test_classes.py View File

@@ -16,8 +16,8 @@ from EditorialModel.fields import EmField
16 16
 #import EditorialModel.fieldtypes as fieldTypes
17 17
 from EditorialModel.model import Model
18 18
 from EditorialModel.backend.json_backend import EmBackendJson
19
-from EditorialModel.migrationhandler.django import DjangoMigrationHandler
20
-#from EditorialModel.migrationhandler.dummy import DummyMigrationHandler
19
+#from EditorialModel.migrationhandler.django import DjangoMigrationHandler
20
+from EditorialModel.migrationhandler.dummy import DummyMigrationHandler
21 21
 
22 22
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Lodel.settings")
23 23
 EM_TEST = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'me.json')
@@ -27,8 +27,8 @@ EM_TEST_OBJECT = None
27 27
 # define the Database for this module (an sqlite database)
28 28
 def setUpModule():
29 29
     global EM_TEST_OBJECT
30
-    EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DjandoMigrationHandler('LodelTestInstance'))
31
-    #EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DummyMigrationHandler())
30
+    #EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DjandoMigrationHandler('LodelTestInstance'))
31
+    EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DummyMigrationHandler())
32 32
     logging.basicConfig(level=logging.CRITICAL)
33 33
 
34 34
 class ClassesTestCase(TestCase):

Loading…
Cancel
Save