Merge pull request #8060 from edx/ned/add-supers

Add super() calls to setUp/tearDown that are missing them
This commit is contained in:
Ned Batchelder
2015-05-15 12:29:14 -04:00
60 changed files with 69 additions and 40 deletions

View File

@@ -118,13 +118,6 @@ class TestCoachDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
from django.core import mail
return mail.outbox
def tearDown(self):
"""
Undo patches.
"""
super(TestCoachDashboard, self).tearDown()
patch.stopall()
def test_not_a_coach(self):
"""
User is not a coach, should get Forbidden response.

View File

@@ -40,12 +40,6 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
# URL for instructor dash
self.url = reverse('instructor_dashboard', kwargs={'course_id': self.course.id.to_deprecated_string()})
def tearDown(self):
"""
Undo patches.
"""
patch.stopall()
def get_dashboard_enrollment_message(self):
"""
Returns expected dashboard enrollment message with link to Insights.