mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 03:07:19 +00:00
chore: util to manage URLs in the codebase (#1179)
* chore: util to manage URLs in the codebase * docs: mentiion validate_links and supported_versions in docs * refactor: fix linter errors
This commit is contained in:
parent
5f4fbe76e5
commit
ccf02fa316
67 changed files with 678 additions and 309 deletions
|
@ -35,7 +35,6 @@ class TestComponentCache:
|
|||
def get_template_data(self, args, kwargs, slots, context):
|
||||
nonlocal did_call_get
|
||||
did_call_get = True
|
||||
return {}
|
||||
|
||||
# First render
|
||||
component = TestComponent()
|
||||
|
@ -70,7 +69,6 @@ class TestComponentCache:
|
|||
def get_template_data(self, args, kwargs, slots, context):
|
||||
nonlocal did_call_get
|
||||
did_call_get = True
|
||||
return {}
|
||||
|
||||
# First render
|
||||
component = TestComponent()
|
||||
|
@ -199,9 +197,6 @@ class TestComponentCache:
|
|||
# Custom hash method for args and kwargs
|
||||
return "custom-args-and-kwargs"
|
||||
|
||||
def get_template_data(self, args, kwargs, slots, context):
|
||||
return {}
|
||||
|
||||
component = TestComponent()
|
||||
component.render(args=(1, 2), kwargs={"key": "value"})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue