diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-23 06:09:29 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-23 06:09:29 -0400 |
| commit | ae48d77ef8e14dae76fddcd5a677b897c7c7c4ae (patch) | |
| tree | fc938daf79b1061aeb70c9d7dd33108d2eb63544 /tests/i18n/commands | |
| parent | 51d2e1fb233b5507bf14300787939717c4d93834 (diff) | |
| download | django-ae48d77ef8e14dae76fddcd5a677b897c7c7c4ae.tar.gz | |
Fixed E225 pep8 warnings.
Diffstat (limited to 'tests/i18n/commands')
| -rw-r--r-- | tests/i18n/commands/compilation.py | 12 | ||||
| -rw-r--r-- | tests/i18n/commands/extraction.py | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/i18n/commands/compilation.py b/tests/i18n/commands/compilation.py index 12bb89ed08..7a159ad1fc 100644 --- a/tests/i18n/commands/compilation.py +++ b/tests/i18n/commands/compilation.py @@ -37,8 +37,8 @@ class PoFileTests(MessageCompilationTests): class PoFileContentsTests(MessageCompilationTests): # Ticket #11240 - LOCALE='fr' - MO_FILE='locale/%s/LC_MESSAGES/django.mo' % LOCALE + LOCALE = 'fr' + MO_FILE = 'locale/%s/LC_MESSAGES/django.mo' % LOCALE def setUp(self): super(PoFileContentsTests, self).setUp() @@ -53,8 +53,8 @@ class PercentRenderingTests(MessageCompilationTests): # Ticket #11240 -- Testing rendering doesn't belong here but we are trying # to keep tests for all the stack together - LOCALE='it' - MO_FILE='locale/%s/LC_MESSAGES/django.mo' % LOCALE + LOCALE = 'it' + MO_FILE = 'locale/%s/LC_MESSAGES/django.mo' % LOCALE def setUp(self): super(PercentRenderingTests, self).setUp() @@ -101,8 +101,8 @@ class MultipleLocaleCompilationTests(MessageCompilationTests): class CompilationErrorHandling(MessageCompilationTests): - LOCALE='ja' - MO_FILE='locale/%s/LC_MESSAGES/django.mo' % LOCALE + LOCALE = 'ja' + MO_FILE = 'locale/%s/LC_MESSAGES/django.mo' % LOCALE def setUp(self): super(CompilationErrorHandling, self).setUp() diff --git a/tests/i18n/commands/extraction.py b/tests/i18n/commands/extraction.py index 107fd4ab1c..462af6064c 100644 --- a/tests/i18n/commands/extraction.py +++ b/tests/i18n/commands/extraction.py @@ -17,11 +17,11 @@ from django.utils.six import StringIO from django.utils.translation import TranslatorCommentWarning -LOCALE='de' +LOCALE = 'de' class ExtractorTests(SimpleTestCase): - PO_FILE='locale/%s/LC_MESSAGES/django.po' % LOCALE + PO_FILE = 'locale/%s/LC_MESSAGES/django.po' % LOCALE def setUp(self): self._cwd = os.getcwd() @@ -255,7 +255,7 @@ class BasicExtractorTests(ExtractorTests): class JavascriptExtractorTests(ExtractorTests): - PO_FILE='locale/%s/LC_MESSAGES/djangojs.po' % LOCALE + PO_FILE = 'locale/%s/LC_MESSAGES/djangojs.po' % LOCALE def test_javascript_literals(self): os.chdir(self.test_dir) @@ -426,7 +426,7 @@ class LocationCommentsTests(ExtractorTests): class KeepPotFileExtractorTests(ExtractorTests): - POT_FILE='locale/django.pot' + POT_FILE = 'locale/django.pot' def setUp(self): super(KeepPotFileExtractorTests, self).setUp() |
