[server] Fix flake8 error of test/data/hooks.py
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Mar 2017 14:07:15 +0100
changeset 12031 92da3e6cb104
parent 12030 72c3af2cde23
child 12032 c16c1805e973
[server] Fix flake8 error of test/data/hooks.py
cubicweb/server/test/data/hooks.py
flake8-ok-files.txt
--- a/cubicweb/server/test/data/hooks.py	Fri Mar 10 14:02:31 2017 +0100
+++ b/cubicweb/server/test/data/hooks.py	Fri Mar 10 14:07:15 2017 +0100
@@ -15,22 +15,24 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""
 
-"""
 from cubicweb.server.hook import Hook
 
 CALLED_EVENTS = {}
 
+
 class StartupHook(Hook):
     __regid__ = 'mystartup'
     events = ('server_startup',)
+
     def __call__(self):
         CALLED_EVENTS['server_startup'] = True
 
+
 class ShutdownHook(Hook):
     __regid__ = 'myshutdown'
     events = ('server_shutdown',)
+
     def __call__(self):
         CALLED_EVENTS['server_shutdown'] = True
 
@@ -38,5 +40,6 @@
 class LoginHook(Hook):
     __regid__ = 'mylogin'
     events = ('session_open',)
+
     def __call__(self):
         CALLED_EVENTS['session_open'] = self._cw.user.login
--- a/flake8-ok-files.txt	Fri Mar 10 14:02:31 2017 +0100
+++ b/flake8-ok-files.txt	Fri Mar 10 14:07:15 2017 +0100
@@ -42,6 +42,7 @@
 cubicweb/server/test/datacomputed/migratedapp/schema.py
 cubicweb/server/test/datacomputed/schema.py
 cubicweb/server/test/data/entities.py
+cubicweb/server/test/data/hooks.py
 cubicweb/server/test/data-migractions/cubes/fakecustomtype/__init__.py
 cubicweb/server/test/data-migractions/cubes/fakeemail/__init__.py
 cubicweb/server/test/data-migractions/cubes/__init__.py