Skip to content

Commit

Permalink
[IMP] update dotfiles [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot authored and Freni-OSI committed May 11, 2022
1 parent 2d3ec73 commit bdd986f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions partner_identification/tests/test_res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ 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")]
)
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"}
)
Expand All @@ -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",
Expand All @@ -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)

0 comments on commit bdd986f

Please sign in to comment.