mirror of
https://github.com/django-components/django-components.git
synced 2025-10-22 11:41:42 +00:00
refactor: fix tests
This commit is contained in:
parent
ce5b5c40d8
commit
089cda54c5
1 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ class ComponentTest(SimpleTestCase):
|
||||||
class SlottedComponent(component.Component):
|
class SlottedComponent(component.Component):
|
||||||
template_name = "slotted_template.html"
|
template_name = "slotted_template.html"
|
||||||
|
|
||||||
def get_context_data(self, name: str | None = None) -> component.Dict[str, component.Any]:
|
def get_context_data(self, name: component.Optional[str] = None) -> component.Dict[str, component.Any]:
|
||||||
return {
|
return {
|
||||||
"name": name,
|
"name": name,
|
||||||
}
|
}
|
||||||
|
@ -542,7 +542,7 @@ class SlotBehaviorTests(SimpleTestCase):
|
||||||
class SlottedComponent(component.Component):
|
class SlottedComponent(component.Component):
|
||||||
template_name = "slotted_template.html"
|
template_name = "slotted_template.html"
|
||||||
|
|
||||||
def get_context_data(self, name: str | None = None) -> component.Dict[str, component.Any]:
|
def get_context_data(self, name: component.Optional[str] = None) -> component.Dict[str, component.Any]:
|
||||||
return {
|
return {
|
||||||
"name": name,
|
"name": name,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue