Fixed getting candidate PDF summary

This commit is contained in:
Claude Paroz 2020-01-08 11:23:52 +01:00
parent 7ee3511e5f
commit 01a2560740
3 changed files with 13 additions and 14 deletions

View file

@ -370,7 +370,7 @@ tél. 032 886 33 00
'attachment; filename="dupond_henri.pdf"'
)
self.assertEqual(response['Content-Type'], 'application/pdf')
self.assertGreater(len(response.content), 200)
self.assertGreater(int(response['Content-Length']), 1000)
def test_export_candidates(self):
ede = Section.objects.create(name='EDE')