Update tests for PDF rendering

This commit is contained in:
Jens Kadenbach 2019-09-12 12:09:54 +02:00
parent d7d8d8dc61
commit d372cd9bf2

View file

@ -15,12 +15,12 @@ class TestRendererFormView:
== timezone.now().strftime('%Y-%m-%d')
def test_render(self, client: Client):
response = client.post('/renderer/', data={
response = client.post('/renderer/render', data={
'title': 'Sample Title',
'date': '2009-11-15',
'render_content': '# Example'
})
assert b'Sample Title' in response.content
assert b'15.11.2009' in response.content
assert b'Example' in response.content
assert response.content.startswith(b'%PDF')