Factorized openpyxl export code to exports.py

This commit is contained in:
Claude Paroz 2017-10-19 09:26:00 +02:00
parent a823a89a78
commit c0bd7a70da
3 changed files with 110 additions and 141 deletions

View file

@ -274,7 +274,7 @@ class TeacherTests(TestCase):
response = self.client.get(reverse('imputations_export'))
self.assertEqual(
response['Content-Disposition'],
'attachment; filename=Imputations_export%s.xlsx' % date.strftime(date.today(), '%Y-%m-%d')
'attachment; filename=Imputations_export_%s.xlsx' % date.strftime(date.today(), '%Y-%m-%d')
)