From d64b5642d1acba6c4b7a51a774152da7e0fe3edc Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Wed, 8 Jan 2025 11:03:32 +0530 Subject: [PATCH] [IMP] crm_operating_unit: pre-commit auto fixes --- crm_operating_unit/tests/test_crm_operating_unit.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crm_operating_unit/tests/test_crm_operating_unit.py b/crm_operating_unit/tests/test_crm_operating_unit.py index 5b41ee8795..7143386ed5 100644 --- a/crm_operating_unit/tests/test_crm_operating_unit.py +++ b/crm_operating_unit/tests/test_crm_operating_unit.py @@ -84,7 +84,9 @@ def test_crm_lead(self): [("id", "=", self.lead1.id), ("operating_unit_id", "=", self.main_OU.id)] ) self.assertEqual( - lead.ids, [], "User 2 should not have access to " "%s" % self.main_OU.name + lead.ids, + [], + f"User 2 should not have access to {self.main_OU.name}", ) def test_team_ou(self): @@ -92,5 +94,5 @@ def test_team_ou(self): self.assertEqual( new_lead.operating_unit_id, self.b2c_OU, - "User 2 lead should have %s as operating unit" % self.b2c_OU.name, + f"User 2 lead should have {self.b2c_OU.name} as operating unit", )