# HG changeset patch # User David Douard # Date 1524146133 -7200 # Node ID b86214011758391495230cf944ceb500f1b8c1cd # Parent 2c582a242b6626b9455d0c4ea045fd84e5ab657d [test/web] flake8 unittest_propertysheet.py diff -r 2c582a242b66 -r b86214011758 cubicweb/web/test/unittest_propertysheet.py --- 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()) diff -r 2c582a242b66 -r b86214011758 flake8-ok-files.txt --- 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