mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
refactor: replace isort, black and flake8 with ruff
This commit is contained in:
parent
8b9b93787f
commit
53a5804706
128 changed files with 3069 additions and 2594 deletions
|
@ -3,6 +3,8 @@ Here we check that the logic around dependency rendering outputs correct HTML.
|
|||
During actual rendering, the HTML is then picked up by the JS-side dependency manager.
|
||||
"""
|
||||
|
||||
# ruff: noqa: E501
|
||||
|
||||
import re
|
||||
|
||||
from django.template import Context, Template
|
||||
|
@ -126,8 +128,7 @@ class TestDependencyRendering:
|
|||
assert "toLoadCssTags" not in rendered
|
||||
|
||||
assert rendered.strip() == (
|
||||
'<script name="JS_PLACEHOLDER"></script>\n'
|
||||
' <link name="CSS_PLACEHOLDER">'
|
||||
'<script name="JS_PLACEHOLDER"></script>\n <link name="CSS_PLACEHOLDER">'
|
||||
)
|
||||
|
||||
def test_no_js_dependencies_when_no_components_used(self):
|
||||
|
@ -387,8 +388,7 @@ class TestDependencyRendering:
|
|||
assert "toLoadCssTags" not in rendered
|
||||
|
||||
assert rendered.strip() == (
|
||||
'<script name="JS_PLACEHOLDER"></script>\n'
|
||||
' <link name="CSS_PLACEHOLDER">'
|
||||
'<script name="JS_PLACEHOLDER"></script>\n <link name="CSS_PLACEHOLDER">'
|
||||
)
|
||||
|
||||
def test_multiple_components_dependencies(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue