mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 11:17:21 +00:00
refactor: rename template_name to template_file (#878)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b99e32e9d5
commit
d94a459c8d
29 changed files with 251 additions and 138 deletions
|
@ -31,7 +31,7 @@ class MainMediaTest(BaseTestCase):
|
|||
|
||||
def test_html_filepath(self):
|
||||
class Test(Component):
|
||||
template_name = "simple_template.html"
|
||||
template_file = "simple_template.html"
|
||||
|
||||
rendered = Test.render(context={"variable": "test"})
|
||||
|
||||
|
@ -86,7 +86,7 @@ class MainMediaTest(BaseTestCase):
|
|||
from tests.test_app.components.app_lvl_comp.app_lvl_comp import AppLvlCompComponent
|
||||
|
||||
class TestComponent(AppLvlCompComponent):
|
||||
template_name = None
|
||||
template_file = None
|
||||
template = """
|
||||
{% load component_tags %}
|
||||
{% component_js_dependencies %}
|
||||
|
@ -167,7 +167,7 @@ class MainMediaTest(BaseTestCase):
|
|||
from tests.test_app.components.app_lvl_comp.app_lvl_comp import AppLvlCompComponent
|
||||
|
||||
class TestComponent(AppLvlCompComponent):
|
||||
template_name = None
|
||||
template_file = None
|
||||
template = """
|
||||
{% load component_tags %}
|
||||
{% component_js_dependencies %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue