Commit 42b56f04 by Carlos Andrés Rocha Committed by Zia Fazal

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.
parent 74404fd0
...@@ -20,11 +20,6 @@ from util.testing import UrlResetMixin ...@@ -20,11 +20,6 @@ from util.testing import UrlResetMixin
class NotificationPrefViewTest(UrlResetMixin, TestCase): class NotificationPrefViewTest(UrlResetMixin, TestCase):
INITIALIZATION_VECTOR = "\x00" * 16 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}) @patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True})
def setUp(self): def setUp(self):
super(NotificationPrefViewTest, self).setUp() super(NotificationPrefViewTest, self).setUp()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment