mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 23:49:07 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8c4a55901c
commit
04d968ace9
3 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,7 @@ from django.test import override_settings
|
||||||
# isort: off
|
# isort: off
|
||||||
from .django_test_setup import * # NOQA
|
from .django_test_setup import * # NOQA
|
||||||
from .testutils import BaseTestCase, autodiscover_with_cleanup
|
from .testutils import BaseTestCase, autodiscover_with_cleanup
|
||||||
|
|
||||||
# isort: on
|
# isort: on
|
||||||
|
|
||||||
from django_components import component, types
|
from django_components import component, types
|
||||||
|
@ -462,6 +463,7 @@ class DuplicateSlotTest(BaseTestCase):
|
||||||
|
|
||||||
class CalendarComponent(component.Component):
|
class CalendarComponent(component.Component):
|
||||||
"""Nested in ComponentWithNestedComponent"""
|
"""Nested in ComponentWithNestedComponent"""
|
||||||
|
|
||||||
template: types.django_html = """
|
template: types.django_html = """
|
||||||
{% load component_tags %}
|
{% load component_tags %}
|
||||||
<div class="calendar-component">
|
<div class="calendar-component">
|
||||||
|
|
|
@ -3,8 +3,7 @@ from unittest.mock import PropertyMock, patch
|
||||||
from django.template import Context, Template
|
from django.template import Context, Template
|
||||||
from django.test import override_settings
|
from django.test import override_settings
|
||||||
|
|
||||||
from django_components import component
|
from django_components import component, types
|
||||||
from django_components import types
|
|
||||||
|
|
||||||
from .django_test_setup import * # NOQA
|
from .django_test_setup import * # NOQA
|
||||||
from .testutils import BaseTestCase
|
from .testutils import BaseTestCase
|
||||||
|
|
|
@ -390,6 +390,7 @@ class ComponentSlottedTemplateTagTest(BaseTestCase):
|
||||||
<h2>{% slot "subtitle" %}{% endslot %}</h2>
|
<h2>{% slot "subtitle" %}{% endslot %}</h2>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
component.registry.register("test", Component)
|
component.registry.register("test", Component)
|
||||||
|
|
||||||
template_str: types.django_html = """
|
template_str: types.django_html = """
|
||||||
|
@ -1110,6 +1111,7 @@ class ComponentNestingTests(BaseTestCase):
|
||||||
|
|
||||||
class CalendarComponent(component.Component):
|
class CalendarComponent(component.Component):
|
||||||
"""Nested in ComponentWithNestedComponent"""
|
"""Nested in ComponentWithNestedComponent"""
|
||||||
|
|
||||||
template: types.django_html = """
|
template: types.django_html = """
|
||||||
{% load component_tags %}
|
{% load component_tags %}
|
||||||
<div class="calendar-component">
|
<div class="calendar-component">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue