Add a general student export

This commit is contained in:
alazo 2017-08-29 17:08:17 +02:00 committed by Claude Paroz
parent d7af54c57d
commit a52beb29d2
4 changed files with 76 additions and 1 deletions

View file

@ -80,7 +80,7 @@ class StagesTest(TestCase):
def setUp(self):
self.client.login(username='me', password='mepassword')
def test_export(self):
def test_export_stages(self):
response1 = self.client.get(reverse('stages_export', args=['all']))
self.assertEqual(response1.status_code, 200)
@ -91,6 +91,10 @@ class StagesTest(TestCase):
response3 = self.client.get(reverse('stages_export'), {'period': '1', 'non_attr': '1'})
self.assertEqual(response2.status_code, 200)
def test_export_students(self):
response = self.client.get(reverse('general-export'))
self.assertEqual(response.status_code, 200)
def test_attribution_view(self):
response = self.client.get(reverse('attribution'))
# Section select