diff --git a/src/tests/plugins/sendmail/test_rules.py b/src/tests/plugins/sendmail/test_rules.py index b900428136..acf707b347 100644 --- a/src/tests/plugins/sendmail/test_rules.py +++ b/src/tests/plugins/sendmail/test_rules.py @@ -208,6 +208,8 @@ def test_sendmail_rule_send_order_vs_pos(send_to, amount_mails, recipients, orde (Rule.ATTENDEES, 1, ['dummy@dummy.test'], None, None, 'addon'), (Rule.ATTENDEES, 1, ['dummy@dummy.test'], None, None, 'both'), (Rule.ATTENDEES, 2, ['dummy@dummy.test', 'addon-attendee@dummy.test'], None, 'addon-attendee@dummy.test', 'both'), + (Rule.ATTENDEES, 1, ['dummy@dummy.test'], None, None, 'all'), + (Rule.ATTENDEES, 2, ['dummy@dummy.test', 'addon-attendee@dummy.test'], None, 'addon-attendee@dummy.test', 'all'), ]) @scopes_disabled() def test_sendmail_rule_send_addons(send_to, amount_mails, recipients, ticket_mail, addon_mail, products, order, @@ -223,7 +225,7 @@ def test_sendmail_rule_send_addons(send_to, amount_mails, recipients, ticket_mai order.all_positions.create(item=item2, price=0, attendee_email=addon_mail, addon_to=p) rule = order.event.sendmail_rules.create(date_is_absolute=True, send_date=dt_now - datetime.timedelta(hours=1), send_to=send_to, subject='meow', template='meow meow meow', - all_products=False) + all_products=products=='all') if products == 'addon': rule.limit_products.set([item2]) if products == 'both':