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
|
@ -11,11 +11,12 @@ See https://github.com/django-components/django-components/issues/1323#issuecomm
|
|||
from typing import NamedTuple
|
||||
|
||||
import pytest
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpRequest
|
||||
from django.shortcuts import render
|
||||
|
||||
from django_components import Component, register
|
||||
from django_components.testing import djc_test
|
||||
|
||||
from .testutils import setup_test_config
|
||||
|
||||
try:
|
||||
|
@ -28,9 +29,7 @@ setup_test_config(components={"autodiscover": False})
|
|||
|
||||
|
||||
# See https://github.com/django-components/django-components/issues/1323#issuecomment-3156654329
|
||||
@djc_test(
|
||||
django_settings={"INSTALLED_APPS": ("template_partials", "django_components", "tests.test_app")}
|
||||
)
|
||||
@djc_test(django_settings={"INSTALLED_APPS": ("template_partials", "django_components", "tests.test_app")})
|
||||
class TestTemplatePartialsIntegration:
|
||||
@pytest.mark.skipif(TemplateProxy is None, reason="template_partials not available")
|
||||
def test_render_partial(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue