mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix #41 -- Drag-and-drop ticket editor
Undo/redo Useful toolbox Font selection Add text content Use hex for colors JS-side dump and load Save Load layout, proper undo/redo First steps to Python rendering More PDF rendering Copy and paste Buttons for keyboard actions Splash Screen Block unbeforeunload in dirty state Remove debugging output Preview Upload new PDFs via the editor Fix bugs during PDF reload, link in settings form New default ticket Add OpenSans BI Custom fonts, fix tests
This commit is contained in:
@@ -39,8 +39,7 @@ def env():
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_generate_pdf(env, mocker):
|
||||
mocked = mocker.patch('reportlab.pdfgen.canvas.Canvas.drawString')
|
||||
def test_generate_pdf(env):
|
||||
event, order = env
|
||||
event.settings.set('ticketoutput_pdf_code_x', 30)
|
||||
event.settings.set('ticketoutput_pdf_code_y', 50)
|
||||
@@ -50,4 +49,3 @@ def test_generate_pdf(env, mocker):
|
||||
assert ftype == 'application/pdf'
|
||||
pdf = PdfFileReader(BytesIO(buf))
|
||||
assert pdf.numPages == 1
|
||||
assert mocked.called
|
||||
|
||||
Reference in New Issue
Block a user