Added tests for modifying and cancelling orders

This commit is contained in:
Raphael Michel
2015-06-28 16:15:40 +02:00
parent 1faee34c93
commit 75b8d800ea
7 changed files with 291 additions and 33 deletions

View 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