Skip to content

Commit

Permalink
Fixing tests (hopefully...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetto committed Feb 19, 2016
1 parent 2737382 commit 3cc15ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/l10n_utils/tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq

from lib import l10n_utils
from lib.l10n_utils import render
from bedrock.mozorg.tests import TestCase

Expand Down Expand Up @@ -129,7 +128,8 @@ def test_render_no_locale(self, django_render, get_lang_path):
render(request, '500.html')


@patch.object(l10n_utils, 'django_render')
@patch('lib.l10n_utils.template_is_active', Mock(return_value=True))
@patch('lib.l10n_utils.django_render')
class TestLocaleTemplates(TestCase):
def setUp(self):
self.rf = RequestFactory()
Expand Down Expand Up @@ -172,7 +172,6 @@ def test_l10n_render(self, django_render):
Non en-US requests with an l10n template should render the l10n
template.
"""
django_render.side_effect = [True]
request = self.rf.get('/')
request.locale = 'es-ES'
render(request, 'firefox/new.html')
Expand Down

0 comments on commit 3cc15ef

Please sign in to comment.