mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Added tests for modifying and cancelling orders
This commit is contained in:
18
src/tests/testdummy/ticketoutput.py
Normal file
18
src/tests/testdummy/ticketoutput.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import logging
|
||||
|
||||
from django.http import HttpResponse
|
||||
from pretix.base.ticketoutput import BaseTicketOutput
|
||||
|
||||
|
||||
logger = logging.getLogger('tests.testdummy.ticketoutput')
|
||||
|
||||
|
||||
class DummyTicketOutput(BaseTicketOutput):
|
||||
identifier = 'testdummy'
|
||||
verbose_name = 'Test dummy'
|
||||
download_button_text = 'Download test file'
|
||||
download_button_icon = 'fa-print'
|
||||
|
||||
def generate(self, request, order):
|
||||
response = HttpResponse(order.identity, content_type='text/plain')
|
||||
return response
|
||||
Reference in New Issue
Block a user