# HG changeset patch # User Sylvain Thénault # Date 1492589339 -7200 # Node ID dfb5ba8518eee829a09d340ad7c0246188c73080 # Parent 2ff5b8955f3f6082e7226ef648dc7d9f45e09448 [test/cleanup] Cleanup flake8 errors in dataimport's test_sqlgenstore diff -r 2ff5b8955f3f -r dfb5ba8518ee cubicweb/dataimport/test/test_sqlgenstore.py --- a/cubicweb/dataimport/test/test_sqlgenstore.py Wed Apr 19 10:18:47 2017 +0200 +++ b/cubicweb/dataimport/test/test_sqlgenstore.py Wed Apr 19 10:08:59 2017 +0200 @@ -16,8 +16,6 @@ # with this program. If not, see . """SQL object store test case""" -import itertools - from cubicweb.dataimport import ucsvreader from cubicweb.devtools import testlib, PostgresApptestConfiguration from cubicweb.devtools import startpgcluster, stoppgcluster @@ -48,7 +46,7 @@ for code, gmt, dst, raw_offset in ucsvreader(open(self.datapath('timeZones.txt'), 'rb'), delimiter='\t'): cnx.create_entity('TimeZone', code=code, gmt=float(gmt), - dst=float(dst), raw_offset=float(raw_offset)) + dst=float(dst), raw_offset=float(raw_offset)) timezone_code = dict(cnx.execute('Any C, X WHERE X is TimeZone, X code C')) cnx.commit() # Push data @@ -70,12 +68,12 @@ 'alternatenames': infos[3], 'latitude': latitude, 'longitude': longitude, 'feature_class': feature_class, - 'alternate_country_code':infos[9], + 'alternate_country_code': infos[9], 'admin_code_3': infos[12], 'admin_code_4': infos[13], 'population': population, 'elevation': elevation, 'gtopo30': gtopo, 'timezone': timezone_code.get(infos[17]), - 'cwuri': u'http://sws.geonames.org/%s/' % int(infos[0]), + 'cwuri': u'http://sws.geonames.org/%s/' % int(infos[0]), 'geonameid': int(infos[0]), } store.prepare_insert_entity('Location', **entity) diff -r 2ff5b8955f3f -r dfb5ba8518ee flake8-ok-files.txt --- a/flake8-ok-files.txt Wed Apr 19 10:18:47 2017 +0200 +++ b/flake8-ok-files.txt Wed Apr 19 10:08:59 2017 +0200 @@ -9,6 +9,7 @@ cubicweb/dataimport/test/test_csv.py cubicweb/dataimport/test/test_pgstore.py cubicweb/dataimport/test/test_massive_store.py +cubicweb/dataimport/test/test_sqlgenstore.py cubicweb/dataimport/test/test_stores.py cubicweb/dataimport/test/unittest_importer.py cubicweb/devtools/test/data/cubes/i18ntestcube/__init__.py