Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
force disco pane tests to use new features
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Jun 18, 2011
1 parent 17e1d10 commit 9965ba3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions apps/discovery/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ class TestPane(test_utils.TestCase):

def setUp(self):
self.url = reverse('discovery.pane', args=['3.7a1pre', 'Darwin'])
# TODO(cvan): Remove this once featured collections are enabled.
self._new_features = settings.NEW_FEATURES
settings.NEW_FEATURES = True

def tearDown(self):
settings.NEW_FEATURES = self._new_features

def test_my_account(self):
self.client.login(username='regular@mozilla.com', password='password')
Expand Down Expand Up @@ -342,9 +348,9 @@ def test_perf_warning(self):


class TestDownloadSources(test_utils.TestCase):
fixtures = ['addons/featured', 'bandwagon/featured_collections',
'base/apps', 'base/addon_3615', 'base/collections',
'base/featured', 'base/users', 'discovery/discoverymodules']
fixtures = ['base/apps', 'base/addon_3615', 'base/collections',
'base/featured', 'addons/featured',
'discovery/discoverymodules']

def setUp(self):
self.url = reverse('discovery.pane', args=['3.7a1pre', 'Darwin'])
Expand Down

0 comments on commit 9965ba3

Please sign in to comment.