mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
2a03a9a9a1
commit
c3791463a5
98 changed files with 748 additions and 96 deletions
|
@ -5,6 +5,7 @@
|
|||
from django.test import TestCase
|
||||
from django.utils.jslex import JsLexer, prepare_js_for_gettext
|
||||
|
||||
|
||||
class JsTokensTest(TestCase):
|
||||
LEX_CASES = [
|
||||
# ids
|
||||
|
@ -105,6 +106,7 @@ class JsTokensTest(TestCase):
|
|||
r'string "\")"', "punct ;"]),
|
||||
]
|
||||
|
||||
|
||||
def make_function(input, toks):
|
||||
def test_func(self):
|
||||
lexer = JsLexer()
|
||||
|
@ -207,6 +209,7 @@ GETTEXT_CASES = (
|
|||
class JsToCForGettextTest(TestCase):
|
||||
pass
|
||||
|
||||
|
||||
def make_function(js, c):
|
||||
def test_func(self):
|
||||
self.assertMultiLineEqual(prepare_js_for_gettext(js), c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue