[flake8] cubicweb/dataimport/test/test_massive_store.py is now flake8 friendly
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 27 Sep 2016 12:01:24 +0200
changeset 11706 43c5b3f31a3a
parent 11705 54b1c8881f1e
child 11707 2c4518fea26f
[flake8] cubicweb/dataimport/test/test_massive_store.py is now flake8 friendly
cubicweb/dataimport/test/test_massive_store.py
tox.ini
--- a/cubicweb/dataimport/test/test_massive_store.py	Tue Sep 27 12:00:42 2016 +0200
+++ b/cubicweb/dataimport/test/test_massive_store.py	Tue Sep 27 12:01:24 2016 +0200
@@ -81,12 +81,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)
@@ -229,7 +229,6 @@
 
     def test_slave_mode_exception(self):
         with self.admin_access.repo_cnx() as cnx:
-            master_store = MassiveObjectStore(cnx, slave_mode=False)
             slave_store = MassiveObjectStore(cnx, slave_mode=True)
             self.assertRaises(RuntimeError, slave_store.finish)
 
--- a/tox.ini	Tue Sep 27 12:00:42 2016 +0200
+++ b/tox.ini	Tue Sep 27 12:01:24 2016 +0200
@@ -61,6 +61,7 @@
   cubicweb/dataimport/test/data/schema.py,
   cubicweb/dataimport/test/test_csv.py,
   cubicweb/dataimport/test/test_pgstore.py,
+  cubicweb/dataimport/test/test_massive_store.py,
   cubicweb/dataimport/test/test_stores.py,
   cubicweb/dataimport/test/unittest_importer.py,
   cubicweb/devtools/test/data/cubes/i18ntestcube/__init__.py,