[PATCH 25 of 52 Narval cube] [autopep8] E127 - Fix visual indentation

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:25 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460413 0
#      Sun Mar 29 05:40:13 2020 +0000
# Node ID 967abd39acec229a74eb1c8bbda921b5406c28ee
# Parent  fd68c18f20746d833f856668e35c8b60cd478f62
[autopep8] E127 - Fix visual indentation

diff --git a/cubicweb_narval/logformat.py b/cubicweb_narval/logformat.py
--- a/cubicweb_narval/logformat.py
+++ b/cubicweb_narval/logformat.py
@@ -159,7 +159,7 @@
 
                 w(u'<div id="%s" %s>' % (div_id, h_class))
                 w(u'<div class="raw_test" ondblclick="javascript: %s" '
-                   'title="%s" style="display: block;">' % (js, text))
+                  'title="%s" style="display: block;">' % (js, text))
                 w(u'%s' % content)
                 w(u'</div>')
                 w(u'</div>')
diff --git a/cubicweb_narval/migration/4.0.0_Any.py b/cubicweb_narval/migration/4.0.0_Any.py
--- a/cubicweb_narval/migration/4.0.0_Any.py
+++ b/cubicweb_narval/migration/4.0.0_Any.py
@@ -140,7 +140,7 @@
 # transform attribute to file
 for plan_eid, log_file_eid in log_list:
     rql('SET X execution_log Y WHERE X eid %(x)s, Y eid %(y)s',
-            {'x': plan_eid, 'y': log_file_eid})
+        {'x': plan_eid, 'y': log_file_eid})
 
 commit()
 
diff --git a/test/test_functional.py b/test/test_functional.py
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -34,14 +34,14 @@
     def test_noop(self):
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.noop',
-                                            script=u'pass')
+                                       script=u'pass')
             self.run_recipe(recipe)
 
     def test_hello_world(self):
         "test a simple recipe is properly executed"
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.helloworld',
-                                            script=u'print("hello world")')
+                                       script=u'print("hello world")')
             cwplan = self.run_recipe(recipe)
             self.assertEqual(1, len(cwplan.execution_log))
             self.assertEqual(cwplan.execution_log[0].data.read().rsplit('<br/>', 1)[-1].strip(), 'hello world')
@@ -50,7 +50,7 @@
         "test a simple recipe with CRLF endlines"
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.crlf',
-                                            script=u'print("hello world")\r\nprint "OK?"\r\n')
+                                       script=u'print("hello world")\r\nprint "OK?"\r\n')
             cwplan = self.run_recipe(recipe)
             self.assertEqual(1, len(cwplan.execution_log))
             self.assertEqual(cwplan.execution_log[0].data.read().rsplit('<br/>', 1)[-1].strip(), 'hello world\nOK?')
@@ -60,7 +60,7 @@
         the executed recipe, via `plan.options`'''
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.mirror',
-                                            script=u'''
+                                       script=u'''
 assert len(plan.options) == 2
 assert plan.options['attr'] == '1'
 assert plan.options['autre'] == '2'
@@ -74,7 +74,7 @@
         handled by the bot'''
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.werror',
-                                            script=u'''
+                                       script=u'''
 def toto():
     b = c
 
@@ -91,7 +91,7 @@
         (segfault or similar) is properly handled'''
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.werror',
-                                            script=u'''
+                                       script=u'''
 import os
 import signal
 print "banzai!"




More information about the cubicweb-devel mailing list