mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
parent
84b0a8d2aa
commit
b1e33ceced
130 changed files with 5259 additions and 1501 deletions
|
@ -42,16 +42,19 @@ class ExtendsBehaviorTests(SimpleTestCase):
|
|||
def test_recursive_multiple_loaders(self):
|
||||
engine = Engine(
|
||||
dirs=[os.path.join(RECURSIVE, 'fs')],
|
||||
loaders=[
|
||||
('django.template.loaders.locmem.Loader', {
|
||||
'one.html': '{% extends "one.html" %}{% block content %}{{ block.super }} locmem-one{% endblock %}',
|
||||
'two.html': '{% extends "two.html" %}{% block content %}{{ block.super }} locmem-two{% endblock %}',
|
||||
loaders=[(
|
||||
'django.template.loaders.locmem.Loader', {
|
||||
'one.html': (
|
||||
'{% extends "one.html" %}{% block content %}{{ block.super }} locmem-one{% endblock %}'
|
||||
),
|
||||
'two.html': (
|
||||
'{% extends "two.html" %}{% block content %}{{ block.super }} locmem-two{% endblock %}'
|
||||
),
|
||||
'three.html': (
|
||||
'{% extends "three.html" %}{% block content %}{{ block.super }} locmem-three{% endblock %}'
|
||||
),
|
||||
}),
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
],
|
||||
}
|
||||
), 'django.template.loaders.filesystem.Loader'],
|
||||
)
|
||||
template = engine.get_template('one.html')
|
||||
output = template.render(Context({}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue