[test/web] flake8 unittest_propertysheet.py 3.26
authorDavid Douard <david.douard@logilab.fr>
Thu, 19 Apr 2018 15:55:33 +0200
branch3.26
changeset 12289 b86214011758
parent 12288 2c582a242b66
child 12290 2b049c9fcec5
[test/web] flake8 unittest_propertysheet.py
cubicweb/web/test/unittest_propertysheet.py
flake8-ok-files.txt
--- a/cubicweb/web/test/unittest_propertysheet.py	Thu Apr 19 12:47:48 2018 +0200
+++ b/cubicweb/web/test/unittest_propertysheet.py	Thu Apr 19 15:55:33 2018 +0200
@@ -40,13 +40,13 @@
         self.assertEqual(ps['fontcolor'], 'black')
         # defined by sheet1, extended by sheet2
         self.assertEqual(ps['stylesheets'], ['http://cwtest.com/cubicweb.css',
-                                              'http://cwtest.com/mycube.css'])
+                                             'http://cwtest.com/mycube.css'])
         # lazy string defined by sheet1
         self.assertIsInstance(ps['lazy'], lazystr)
         self.assertEqual(str(ps['lazy']), '#FFFFFF')
         # test compilation
         self.assertEqual(ps.compile('a {bgcolor: %(bgcolor)s; size: 1%;}'),
-                          'a {bgcolor: #FFFFFF; size: 1%;}')
+                         'a {bgcolor: #FFFFFF; size: 1%;}')
         self.assertEqual(ps.process_resource(DATADIR, 'pouet.css'),
                          self.cachedir)
         self.assertFalse(ps.need_reload())
@@ -54,7 +54,7 @@
         self.assertTrue(ps.need_reload())
         ps.reload()
         self.assertFalse(ps.need_reload())
-        ps.process_resource(DATADIR, 'pouet.css') # put in cache
+        ps.process_resource(DATADIR, 'pouet.css')  # put in cache
         os.utime(self.data('pouet.css'), None)
         self.assertFalse(ps.need_reload())
 
--- a/flake8-ok-files.txt	Thu Apr 19 12:47:48 2018 +0200
+++ b/flake8-ok-files.txt	Thu Apr 19 15:55:33 2018 +0200
@@ -110,6 +110,7 @@
 cubicweb/web/test/data/entities.py
 cubicweb/web/test/unittest_application.py
 cubicweb/web/test/unittest_http_headers.py
+cubicweb/web/test/unittest_propertysheet.py
 cubicweb/web/test/unittest_uicfg.py
 cubicweb/web/test/unittest_views_basetemplates.py
 cubicweb/web/test/unittest_views_cwsources.py