Skip to content

Commit

Permalink
[IMP] partner_event: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Feb 3, 2025
1 parent 5fe9256 commit c4895bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions partner_event/tests/test_event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ def test_data_update(self):

def test_delete_registered_partner(self):
# We can't delete a partner with registrations
with self.assertRaises(IntegrityError), self.cr.savepoint(), mute_logger(
"odoo.sql_db"
with (
self.assertRaises(IntegrityError),
self.cr.savepoint(),
mute_logger("odoo.sql_db"),
):
self.partner_01.unlink()
# Create a brand new partner and delete it
Expand Down

0 comments on commit c4895bd

Please sign in to comment.