- {html.replace(chr(10), '
')}
- Events allows you to make a wave of tickets for an event,
- each ticket is in the form of a unique QRcode, which the
- user presents at registration. Events comes with a shareable
- ticket scanner, which can be used to register attendees.
-
- Created by,
- Ben Arc
-
-
+ Events allows you to make a wave of tickets for an event, each ticket is
+ in the form of a unique QRcode, which the user presents at registration.
+ Events comes with a shareable ticket scanner, which can be used to
+ register attendees.
+
+ Created by,
+ Ben Arc
+
+
You'll be redirected in a few moments...
+html
" - ) - assert msg["Date"] - assert msg["Message-ID"].endswith("@example.org>") - assert msg["From"] == "Oyez!html
", - attachments=[("ticket-test-8auNuuaB.png", png)], - ) - assert msg.get_content_type() == "multipart/mixed" - body, attachment = msg.get_payload() - assert body.get_content_type() == "multipart/alternative" - assert attachment.get_content_type() == "image/png" - assert attachment.get_filename() == "ticket-test-8auNuuaB.png" - assert attachment.get_payload(decode=True) == png - - -def test_payload_includes_event_details_and_qr(monkeypatch): - monkeypatch.setattr(settings, "lnbits_baseurl", "https://lnbits.example/") - subject, text, html = _ticket_notification_payload(_ticket(), _event()) - assert "Test Event" in subject - for needle in ( - "Event: Test Event", - "Where: The Chateau", - "Name on ticket: Ada", - "Ticket ID: tkt1", - "at the door", - ): - assert needle in text - assert "/events/api/v1/ticket-card/tkt1" in text - assert "