diff --git a/stages/test_files/EXPORT_GAN.xls b/stages/test_files/EXPORT_GAN.xls deleted file mode 100644 index 29e767e..0000000 Binary files a/stages/test_files/EXPORT_GAN.xls and /dev/null differ diff --git a/stages/test_files/EXPORT_GAN.xlsx b/stages/test_files/EXPORT_GAN.xlsx new file mode 100644 index 0000000..9dbc23e Binary files /dev/null and b/stages/test_files/EXPORT_GAN.xlsx differ diff --git a/stages/tests.py b/stages/tests.py index 8a93174..1cabdfe 100644 --- a/stages/tests.py +++ b/stages/tests.py @@ -176,7 +176,7 @@ class ImportTests(TestCase): User.objects.create_user('me', 'me@example.org', 'mepassword') def test_import_gan(self): - path = os.path.join(os.path.dirname(__file__), 'test_files', 'EXPORT_GAN.xls') + path = os.path.join(os.path.dirname(__file__), 'test_files', 'EXPORT_GAN.xlsx') self.client.login(username='me', password='mepassword') with open(path, 'rb') as fh: response = self.client.post(reverse('import-students'), {'upload': fh}, follow=True) @@ -201,7 +201,7 @@ class ImportTests(TestCase): teacher = Teacher.objects.create( first_name='Laurie', last_name='Bernasconi', birth_date='1974-08-08' ) - path = os.path.join(os.path.dirname(__file__), 'test_files', 'HYPERPLANNING.csv') + path = os.path.join(os.path.dirname(__file__), 'test_files', 'HYPERPLANNING.txt') self.client.login(username='me', password='mepassword') with open(path, 'rb') as fh: response = self.client.post(reverse('import-hp'), {'upload': fh}, follow=True)