[pep8] fix E501
authorNoe Gaumont <ngaumont@logilab.fr>
Fri, 12 Apr 2019 10:13:00 +0200
changeset 205 3e977506f634
parent 204 4cafcec1859f
child 206 5df0a685cc1a
[pep8] fix E501
test/test_classification.py
test/test_descendant_of.py
--- a/test/test_classification.py	Fri Apr 12 10:09:46 2019 +0200
+++ b/test/test_classification.py	Fri Apr 12 10:13:00 2019 +0200
@@ -44,7 +44,9 @@
                         {'k1': self.kwgroup_eid, 'k2': self.kwuser_eid})
             self.assertRaises(ValidationError, cnx.commit)
             # testing indirect cycles
-            kwgroup2_eid = cnx.create_entity('Keyword', name=u'kwgroup2', included_in=self.classif1_eid, subkeyword_of=self.kwgroup_eid).eid
+            kwgroup2_eid = cnx.create_entity('Keyword', name=u'kwgroup2',
+                                             included_in=self.classif1_eid,
+                                             subkeyword_of=self.kwgroup_eid).eid
             cnx.execute('SET K subkeyword_of K2 WHERE K eid %(k)s, K2 eid %(k2)s',
                         {'k': self.kwgroup_eid, 'k2': kwgroup2_eid})
             self.assertRaises(ValidationError, cnx.commit)
--- a/test/test_descendant_of.py	Fri Apr 12 10:09:46 2019 +0200
+++ b/test/test_descendant_of.py	Fri Apr 12 10:13:00 2019 +0200
@@ -154,7 +154,8 @@
             kw1 = cnx.find('Keyword', eid=kw1_eid).one()
             kw2 = cnx.find('Keyword', eid=kw2_eid).one()
             kw3 = cnx.find('Keyword', eid=kw3_eid).one()
-            self.assertCountEqual([kw.name for kw in kw0.cw_adapt_to('ITree').recurse_children()], ['kw1', 'kw2', 'kw3'])
+            self.assertCountEqual([kw.name for kw in kw0.cw_adapt_to('ITree').recurse_children()],
+                                  ['kw1', 'kw2', 'kw3'])
             self.assertCountEqual([kw.name for kw in kw0.reverse_descendant_of], ['kw3', 'kw2', 'kw1'])
             self.assertCountEqual([kw.name for kw in kw1.descendant_of], ['kw0'])
             self.assertCountEqual([kw.name for kw in kw2.descendant_of], ['kw1', 'kw0'])