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

Loading…
Cancel
Save