summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_static.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /tests/template_tests/syntax_tests/test_static.py
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'tests/template_tests/syntax_tests/test_static.py')
-rw-r--r--tests/template_tests/syntax_tests/test_static.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/template_tests/syntax_tests/test_static.py b/tests/template_tests/syntax_tests/test_static.py
index cd63350cb5..63265f57f3 100644
--- a/tests/template_tests/syntax_tests/test_static.py
+++ b/tests/template_tests/syntax_tests/test_static.py
@@ -44,7 +44,10 @@ class StaticTagTests(SimpleTestCase):
@setup(
{
- "t": "{% load static %}{% get_media_prefix ad media_prefix %}{{ media_prefix }}"
+ "t": (
+ "{% load static %}{% get_media_prefix ad media_prefix %}"
+ "{{ media_prefix }}"
+ )
}
)
def test_static_prefixtag_without_as(self):
@@ -66,7 +69,9 @@ class StaticTagTests(SimpleTestCase):
@setup(
{
- "static-statictag03": '{% load static %}{% static "admin/base.css" as foo %}{{ foo }}'
+ "static-statictag03": (
+ '{% load static %}{% static "admin/base.css" as foo %}{{ foo }}'
+ )
}
)
def test_static_statictag03(self):
@@ -84,7 +89,9 @@ class StaticTagTests(SimpleTestCase):
@setup(
{
- "static-statictag05": '{% load static %}{% static "special?chars&quoted.html" %}'
+ "static-statictag05": (
+ '{% load static %}{% static "special?chars&quoted.html" %}'
+ )
}
)
def test_static_quotes_urls(self):