From f0040da8b1efa6372f4238c34f9d8fea783b0a06 Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 13 Oct 2019 22:34:54 +0200 Subject: [PATCH] fix pylint warning [W0622(redefined-builtin), TestBaseLocationGeonamesImport.test_import_title] Redefining built-in 'zip' --- .../tests/test_base_location_geonames_import.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base_location_geonames_import/tests/test_base_location_geonames_import.py b/base_location_geonames_import/tests/test_base_location_geonames_import.py index 0be9a298e..d36d15acd 100644 --- a/base_location_geonames_import/tests/test_base_location_geonames_import.py +++ b/base_location_geonames_import/tests/test_base_location_geonames_import.py @@ -76,10 +76,10 @@ class TestBaseLocationGeonamesImport(common.SavepointCase): def test_import_title(self): self.wizard.letter_case = "title" self.wizard.with_context(max_import=1).run_import() - zip = self.env["res.city.zip"].search( + city_zip = self.env["res.city.zip"].search( [("city_id.country_id", "=", self.country.id)], limit=1 ) - self.assertEqual(zip.city_id.name, zip.city_id.name.title()) + self.assertEqual(city_zip.city_id.name, city_zip.city_id.name.title()) city = self.env["res.city"].search( [("country_id", "=", self.country.id)], limit=1 @@ -89,10 +89,10 @@ class TestBaseLocationGeonamesImport(common.SavepointCase): def test_import_upper(self): self.wizard.letter_case = "upper" self.wizard.with_context(max_import=1).run_import() - zip = self.env["res.city.zip"].search( + city_zip = self.env["res.city.zip"].search( [("city_id.country_id", "=", self.country.id)], limit=1 ) - self.assertEqual(zip.city_id.name, zip.city_id.name.upper()) + self.assertEqual(city_zip.city_id.name, city_zip.city_id.name.upper()) city = self.env["res.city"].search( [("country_id", "=", self.country.id)], limit=1