diff --git a/evap/grades/tests.py b/evap/grades/tests.py index fe7dccaf5..502cdb4e5 100644 --- a/evap/grades/tests.py +++ b/evap/grades/tests.py @@ -55,6 +55,7 @@ def tearDown(self): for course in Course.objects.all(): for grade_document in course.grade_documents.all(): grade_document.file.delete() + super().tearDown() def helper_upload_grades(self, course, final_grades): upload_files = [("file", "grades.txt", b"Some content")] diff --git a/evap/staff/tests/test_views.py b/evap/staff/tests/test_views.py index 8a94a3a14..7562ecd41 100644 --- a/evap/staff/tests/test_views.py +++ b/evap/staff/tests/test_views.py @@ -2379,6 +2379,7 @@ def setUpTestData(cls): def tearDown(self): # delete the uploaded file again so other tests can start with no file guaranteed helper_delete_all_import_files(self.manager.id) + super().tearDown() def test_import_valid_participants_file(self): page = self.app.get(self.url, user=self.manager)