[server/test] bit of PEP8
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 07 Oct 2015 17:27:35 +0200
changeset 10633 d800ecd381f6
parent 10632 d89e9176d263
child 10634 06a43f727601
[server/test] bit of PEP8
server/test/datacomputed/schema.py
server/test/unittest_migractions.py
--- a/server/test/datacomputed/schema.py	Tue Aug 25 11:11:34 2015 +0200
+++ b/server/test/datacomputed/schema.py	Wed Oct 07 17:27:35 2015 +0200
@@ -36,11 +36,13 @@
 class Company(EntityType):
     score100 = Float(formula='Any AVG(NN) WHERE X employees E, N concerns E, N note100 NN')
 
+
 class Note(EntityType):
     note = Int()
     note20 = Int(formula='Any N*20 WHERE X note N')
     note100 = Int(formula='Any N*20 WHERE X note N')
 
+
 class concerns(RelationDefinition):
     subject = 'Note'
     object = 'Employee'
--- a/server/test/unittest_migractions.py	Tue Aug 25 11:11:34 2015 +0200
+++ b/server/test/unittest_migractions.py	Wed Oct 07 17:27:35 2015 +0200
@@ -703,8 +703,7 @@
         self.assertNotIn('works_for', self.schema)
         with self.mh() as (cnx, mh):
             with self.assertRaises(ExecutionError) as exc:
-                mh.cmd_add_relation_definition('Employee', 'works_for',
-                                                    'Company')
+                mh.cmd_add_relation_definition('Employee', 'works_for', 'Company')
         self.assertEqual(str(exc.exception),
                          'Cannot add a relation definition for a computed '
                          'relation (works_for)')
@@ -776,9 +775,9 @@
             assert not cnx.execute('Company X')
             c = cnx.create_entity('Company')
             e1 = cnx.create_entity('Employee', reverse_employees=c)
-            n1 = cnx.create_entity('Note', note=2, concerns=e1)
+            cnx.create_entity('Note', note=2, concerns=e1)
             e2 = cnx.create_entity('Employee', reverse_employees=c)
-            n2 = cnx.create_entity('Note', note=4, concerns=e2)
+            cnx.create_entity('Note', note=4, concerns=e2)
             cnx.commit()
 
     def assert_score_initialized(self, mh):