Permalink
Browse files

replace call to base.lang by call to download_button.lang in base.py …

…+ replace references to base.lang in test files by references to download_button.lang for consistency
  • Loading branch information...
1 parent 45364ca commit 965454e4b2ae91f82d548aa298d3bfde88811b8c @pascalchevrel committed Mar 15, 2013
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/l10n_utils/tests/test_template.py
  2. +1 −1 settings/base.py
@@ -79,7 +79,7 @@ def test_added_lang_files(self):
request = type('request', (), {})()
template.render(request=request)
eq_(request.langfiles, ['dude', 'walter',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
def test_added_lang_files_inheritance(self):
@@ -96,7 +96,7 @@ def test_added_lang_files_inheritance(self):
request = type('request', (), {})()
template.render(request=request)
eq_(request.langfiles, ['donnie', 'smokey', 'jesus', 'dude', 'walter',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
@patch.object(settings, 'ROOT_URLCONF', 'l10n_utils.tests.test_files.urls')
@@ -110,7 +110,7 @@ def test_lang_files_order(self, translate):
"""
self.client.get('/de/some-lang-files/')
translate.assert_called_with(ANY, ['dude', 'walter', 'some_lang_files',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
@patch.object(settings, 'ROOT_URLCONF', 'l10n_utils.tests.test_files.urls')
@@ -123,4 +123,4 @@ def test_lang_files_default_order(self, translate):
"""
self.client.get('/de/active-de-lang-file/')
translate.assert_called_with(ANY, ['active_de_lang_file', 'main',
- 'base', 'newsletter'])
+ 'download_button', 'newsletter'])
View
@@ -39,7 +39,7 @@
FEED_CACHE = 3900
DOTLANG_CACHE = 60
-DOTLANG_FILES = ['main', 'base', 'newsletter']
+DOTLANG_FILES = ['main', 'download_button', 'newsletter']
# Paths that don't require a locale code in the URL.
# matches the first url component (e.g. mozilla.org/gameon/)

0 comments on commit 965454e

Please sign in to comment.