From 5d01f8ff464972c95214307360600556429c5b20 Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Fri, 3 Jul 2026 12:17:09 +0200 Subject: [PATCH] codestyle --- src/tests/plugins/sendmail/test_rules.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tests/plugins/sendmail/test_rules.py b/src/tests/plugins/sendmail/test_rules.py index a3855171f..41147c6ae 100644 --- a/src/tests/plugins/sendmail/test_rules.py +++ b/src/tests/plugins/sendmail/test_rules.py @@ -432,7 +432,7 @@ def test_sendmail_rule_checked_in_mixed_order(event, order, item): order.status = Order.STATUS_PAID order.save() p1 = order.all_positions.create(item=item, price=13, attendee_email='item1@dummy.test') - p2 = order.all_positions.create(item=item, price=13, attendee_email='item2@dummy.test') + order.all_positions.create(item=item, price=13, attendee_email='item2@dummy.test') # p2 clist = event.checkin_lists.create(name="Default", all_products=True) # receives no mail when checked in @@ -451,7 +451,7 @@ def test_sendmail_rule_not_checked_in_mixed_order(event, order, item): order.status = Order.STATUS_PAID order.save() p1 = order.all_positions.create(item=item, price=13, attendee_email='item1@dummy.test') - p2 = order.all_positions.create(item=item, price=13, attendee_email='item2@dummy.test') + order.all_positions.create(item=item, price=13, attendee_email='item2@dummy.test') # p2 clist = event.checkin_lists.create(name="Default", all_products=True) # receives no mail when checked in @@ -499,8 +499,8 @@ def test_sendmail_rule_not_checked_in_mixed_order_position_without_email(event, order.save() p1 = order.all_positions.create(item=item, price=13, attendee_email='item1@dummy.test') p2 = order.all_positions.create(item=item, price=13, attendee_email='item2@dummy.test') - p3 = order.all_positions.create(item=item, price=13) - p4 = order.all_positions.create(item=item, price=13) + order.all_positions.create(item=item, price=13) # p3 + order.all_positions.create(item=item, price=13) # p4 clist = event.checkin_lists.create(name="Default", all_products=True) # receives no mail when checked in @@ -516,6 +516,7 @@ def test_sendmail_rule_not_checked_in_mixed_order_position_without_email(event, assert [order.email] in recipients # for p3 and p4 assert [p2.attendee_email] in recipients # for p2 + @pytest.mark.django_db @scopes_disabled() def run_restriction_test(event, order, restrictions_pass=[], restrictions_fail=[]):