mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[4.1.x] Fixed warnings per flake8 5.0.0.
Backport of c18861804f from main
This commit is contained in:
@@ -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>',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user