Browse Source

PEP8/PyLint on test_classes.py

Roland Haroutiounian 9 years ago
parent
commit
35d9d698b2
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      EditorialModel/test/test_classes.py

+ 3
- 1
EditorialModel/test/test_classes.py View File

23
 EM_TEST = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'me.json')
23
 EM_TEST = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'me.json')
24
 EM_TEST_OBJECT = None
24
 EM_TEST_OBJECT = None
25
 
25
 
26
+
26
 ## run once for this module
27
 ## run once for this module
27
 # define the Database for this module (an sqlite database)
28
 # define the Database for this module (an sqlite database)
28
 def setUpModule():
29
 def setUpModule():
31
     EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DummyMigrationHandler())
32
     EM_TEST_OBJECT = Model(EmBackendJson(EM_TEST), migration_handler=DummyMigrationHandler())
32
     logging.basicConfig(level=logging.CRITICAL)
33
     logging.basicConfig(level=logging.CRITICAL)
33
 
34
 
35
+
34
 class ClassesTestCase(TestCase):
36
 class ClassesTestCase(TestCase):
35
 
37
 
36
     # run before every instanciation of the class
38
     # run before every instanciation of the class
89
         # TODO check : "table still exists but the class was deleted"
91
         # TODO check : "table still exists but the class was deleted"
90
         # TODO check : "table doesn't exist but the class was not deleted"
92
         # TODO check : "table doesn't exist but the class was not deleted"
91
 
93
 
92
-
93
     # tests if delete refuse to delete if a class had fieldgroups
94
     # tests if delete refuse to delete if a class had fieldgroups
94
     def test_table_refuse_delete(self):
95
     def test_table_refuse_delete(self):
95
         """ Test delete on an EmClass that has fieldgroup """
96
         """ Test delete on an EmClass that has fieldgroup """
165
         types = test_class.types()
166
         types = test_class.types()
166
         self.assertEqual(types, [])
167
         self.assertEqual(types, [])
167
 
168
 
169
+
168
 # interface to fields
170
 # interface to fields
169
 class TestEmClassFields(ClassesTestCase):
171
 class TestEmClassFields(ClassesTestCase):
170
 
172
 

Loading…
Cancel
Save