summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-31 07:48:52 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-31 08:16:19 +0200
commitc18861804feb6a97afbeabb51be748dd60a04458 (patch)
tree23abac6e15a193186df9b4a7fff090656757b8fb /tests/staticfiles_tests
parent1e5bbbb2a866faf56e00eb744ab940e40e87d497 (diff)
downloaddjango-c18861804feb6a97afbeabb51be748dd60a04458.tar.gz
Fixed warnings per flake8 5.0.0.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r--tests/staticfiles_tests/test_forms.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/staticfiles_tests/test_forms.py b/tests/staticfiles_tests/test_forms.py
index d95fed43cc..ad662d7321 100644
--- a/tests/staticfiles_tests/test_forms.py
+++ b/tests/staticfiles_tests/test_forms.py
@@ -29,10 +29,11 @@ class StaticFilesFormsMediaTestCase(SimpleTestCase):
)
self.assertEqual(
str(m),
- """<link href="https://example.com/assets/path/to/css1" media="all" rel="stylesheet">
-<link href="/path/to/css2" media="all" rel="stylesheet">
-<script src="/path/to/js1"></script>
-<script src="http://media.other.com/path/to/js2"></script>
-<script src="https://secure.other.com/path/to/js3"></script>
-<script src="https://example.com/assets/relative/path/to/js4"></script>""",
+ '<link href="https://example.com/assets/path/to/css1" media="all" '
+ 'rel="stylesheet">\n'
+ '<link href="/path/to/css2" media="all" rel="stylesheet">\n'
+ '<script src="/path/to/js1"></script>\n'
+ '<script src="http://media.other.com/path/to/js2"></script>\n'
+ '<script src="https://secure.other.com/path/to/js3"></script>\n'
+ '<script src="https://example.com/assets/relative/path/to/js4"></script>',
)