From bdd986f28c1099d3b38ddb45108d9a681bd8b320 Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Thu, 31 Mar 2022 17:03:26 +0200 Subject: [PATCH] [IMP] update dotfiles [ci skip] --- .../tests/test_partner_identification.py | 2 +- partner_identification/tests/test_res_partner.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/partner_identification/tests/test_partner_identification.py b/partner_identification/tests/test_partner_identification.py index 3a9f638bb0b..edfe0a7569b 100644 --- a/partner_identification/tests/test_partner_identification.py +++ b/partner_identification/tests/test_partner_identification.py @@ -111,7 +111,7 @@ def test_bad_validation_code(self): ) def test_bad_validation_code_override(self): - """ It should allow a bad validation code if context overrides. """ + """It should allow a bad validation code if context overrides.""" partner_id_category = self.env["res.partner.id_category"].create( { "code": "id_code", diff --git a/partner_identification/tests/test_res_partner.py b/partner_identification/tests/test_res_partner.py index 68a1fd65873..8e74eda8fca 100644 --- a/partner_identification/tests/test_res_partner.py +++ b/partner_identification/tests/test_res_partner.py @@ -40,17 +40,17 @@ def tearDownClass(cls): super().tearDownClass() def test_compute_identification(self): - """ It should set the proper field to the proper ID name. """ + """It should set the proper field to the proper ID name.""" self.partner._compute_identification("name", "id_code") self.assertEqual(self.partner.name, self.partner_id.name) def test_inverse_identification_saves(self): - """ It should set the ID name to the proper field value. """ + """It should set the ID name to the proper field value.""" self.partner._inverse_identification("name", "id_code") self.assertEqual(self.partner_id.name, self.partner.name) def test_inverse_identification_creates_new_category(self): - """ It should create a new category of the type if non-existent. """ + """It should create a new category of the type if non-existent.""" self.partner._inverse_identification("name", "new_code_type") category = self.env["res.partner.id_category"].search( [("code", "=", "new_code_type")] @@ -58,7 +58,7 @@ def test_inverse_identification_creates_new_category(self): self.assertTrue(category) def test_inverse_identification_creates_new_id(self): - """ It should create a new ID of the type if non-existent. """ + """It should create a new ID of the type if non-existent.""" category = self.env["res.partner.id_category"].create( {"code": "new_code_type", "name": "new_code_type"} ) @@ -69,7 +69,7 @@ def test_inverse_identification_creates_new_id(self): self.assertEqual(identification.name, self.partner.name) def test_inverse_identification_multi_exception(self): - """ It should not allow a write when multiple IDs of same type. """ + """It should not allow a write when multiple IDs of same type.""" self.env["res.partner.id_number"].create( { "name": "Another ID", @@ -81,7 +81,7 @@ def test_inverse_identification_multi_exception(self): self.partner._inverse_identification("name", "id_code") def test_search_identification(self): - """ It should return the right record when searched by ID. """ + """It should return the right record when searched by ID.""" self.partner.social_security = "Test" partner = self.env["res.partner"].search([("social_security", "=", "Test")]) self.assertEqual(partner, self.partner)