Update tests for PDF rendering
This commit is contained in:
parent
d7d8d8dc61
commit
d372cd9bf2
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue