Modify notification_pref tests to avoid changes to module store

Calling the client root was causing the module store to be modified,
affecting test in other Django applications that rely on the default
state of the module store.
This commit is contained in:
Carlos Andrés Rocha
2014-09-16 16:53:57 -04:00
parent 276ea2fe84
commit 72651e64ad

View File

@@ -20,11 +20,6 @@ from util.testing import UrlResetMixin
class NotificationPrefViewTest(UrlResetMixin, TestCase):
INITIALIZATION_VECTOR = "\x00" * 16
@classmethod
def setUpClass(cls):
# Make sure global state is set up appropriately
Client().get("/")
@patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True})
def setUp(self):
super(NotificationPrefViewTest, self).setUp()