mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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
|
@ -4,6 +4,7 @@ from django.template import VariableNode, Context
|
|||
from django.template.loader import get_template_from_string
|
||||
from django.test.utils import override_settings
|
||||
|
||||
|
||||
class NodelistTest(TestCase):
|
||||
|
||||
def test_for(self):
|
||||
|
@ -36,7 +37,7 @@ class ErrorIndexTest(TestCase):
|
|||
Checks whether index of error is calculated correctly in
|
||||
template debugger in for loops. Refs ticket #5831
|
||||
"""
|
||||
@override_settings(DEBUG=True, TEMPLATE_DEBUG = True)
|
||||
@override_settings(DEBUG=True, TEMPLATE_DEBUG=True)
|
||||
def test_correct_exception_index(self):
|
||||
tests = [
|
||||
('{% load bad_tag %}{% for i in range %}{% badsimpletag %}{% endfor %}', (38, 56)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue