Add the imputations export view

This commit is contained in:
Claude Paroz 2017-07-19 18:51:56 +02:00
parent f1fb3073de
commit 6add55ba1d
4 changed files with 58 additions and 10 deletions

View file

@ -208,6 +208,14 @@ class TeacherTests(TestCase):
self.assertEqual(result[1]['ASSC'], 9)
self.assertEqual(result[1]['EDEpe'], 5)
def test_export_imputations(self):
self.client.login(username='me', password='mepassword')
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')
)
class ImportTests(TestCase):
def setUp(self):