浏览代码

[#54] Activated DjangoMigrationHandler to the tests of EmClass

Roland Haroutiounian 9 年前
父节点
当前提交
a225a63d2e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      EditorialModel/test/test_classes.py

+ 4
- 4
EditorialModel/test/test_classes.py 查看文件

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

正在加载...
取消
保存