From d372cd9bf2866633e11f3deb819dc3bf77cd120f Mon Sep 17 00:00:00 2001 From: Jens Kadenbach Date: Thu, 12 Sep 2019 12:09:54 +0200 Subject: [PATCH] Update tests for PDF rendering --- schickmacher/renderer/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schickmacher/renderer/tests/test_views.py b/schickmacher/renderer/tests/test_views.py index 8abf00a..6860527 100644 --- a/schickmacher/renderer/tests/test_views.py +++ b/schickmacher/renderer/tests/test_views.py @@ -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')