Skip to content

Commit

Permalink
[IMP] crm_operating_unit: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Jan 8, 2025
1 parent c9cbff1 commit d64b564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crm_operating_unit/tests/test_crm_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ 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):
new_lead = self._create_crm_lead(self.user2.id, self.team2)
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",
)

0 comments on commit d64b564

Please sign in to comment.