Prefix notification emails with the event slug

This commit is contained in:
Raphael Michel
2019-05-16 11:09:20 +02:00
parent 5f82db3949
commit 6c582b8f8c
3 changed files with 7 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ def test_notification_trigger_event_specific(event, order, user, monkeypatch_on_
with transaction.atomic():
order.log_action('pretix.event.order.paid', {})
assert len(djmail.outbox) == 1
assert djmail.outbox[0].subject.endswith("DUMMY: Order FOO has been marked as paid.")
@pytest.mark.django_db