Fix flake8 errors in unittest_cwctl 3.25
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Mar 2017 11:17:37 +0200
branch3.25
changeset 12121 86ec847835cd
parent 12120 707139a9eb00
child 12122 92aef8c6e7c8
Fix flake8 errors in unittest_cwctl
cubicweb/test/unittest_cwctl.py
flake8-ok-files.txt
--- a/cubicweb/test/unittest_cwctl.py	Wed Mar 29 11:14:53 2017 +0200
+++ b/cubicweb/test/unittest_cwctl.py	Wed Mar 29 11:17:37 2017 +0200
@@ -25,7 +25,6 @@
 
 from mock import patch
 
-from cubicweb.cwconfig import CubicWebConfiguration
 from cubicweb.cwctl import ListCommand
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.migractions import ServerMigrationHelper
@@ -69,10 +68,11 @@
                                         interactive=False,
                                         # hack so it don't try to load fs schema
                                         schema=1)
-            scripts = {'script1.py': list(),
-                       'script2.py': ['-v'],
-                       'script3.py': ['-vd', '-f', 'FILE.TXT'],
-                      }
+            scripts = {
+                'script1.py': list(),
+                'script2.py': ['-v'],
+                'script3.py': ['-vd', '-f', 'FILE.TXT'],
+            }
             mih.cmd_process_script(join(self.datadir, 'scripts', 'script1.py'),
                                    funcname=None)
             for script, args in scripts.items():
--- a/flake8-ok-files.txt	Wed Mar 29 11:14:53 2017 +0200
+++ b/flake8-ok-files.txt	Wed Mar 29 11:17:37 2017 +0200
@@ -85,6 +85,7 @@
 cubicweb/test/data/views.py
 cubicweb/test/unittest_binary.py
 cubicweb/test/unittest_cwconfig.py
+cubicweb/test/unittest_cwctl.py
 cubicweb/test/unittest_mail.py
 cubicweb/test/unittest_repoapi.py
 cubicweb/test/unittest_req.py