Skip to content

Commit

Permalink
Call super.tearDown() in derived classes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardebeling committed Nov 4, 2024
1 parent 74e5c79 commit 84a0ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions evap/grades/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
1 change: 1 addition & 0 deletions evap/staff/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 84a0ce0

Please sign in to comment.