django-components/tests
Juro Oravec c692b7a310
refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283)
* refactor: Cache components' JS and CSS scripts at class creation time

* refactor: add test for no template_rendered signal for component with no template
2025-07-03 12:27:21 +02:00
..
__snapshots__ refactor: prefix component ID with c (#1127) 2025-04-14 12:01:16 +02:00
components chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
e2e chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
static_root chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
templates test: test to illustrate bug in component caching when using include tag (#1135) 2025-04-20 11:53:06 +02:00
test_app refactor: Instantiate component when rendering, and remove metadata stack (#1212) 2025-05-25 23:33:38 +02:00
test_app_nested refactor: Update docs and tests to use get_template_data() (#1161) 2025-05-03 12:04:10 +02:00
test_structures/test_structure_1 refactor: Prepare autodiscover and template loader for v1 (#533) 2024-07-29 20:27:35 +02:00
__init__.py A simple ComponentRegistry to store components. 2015-06-11 20:42:16 +02:00
conftest.py feat: add JS dependency manager (#666) 2024-09-22 16:42:41 +02:00
test_attributes.py refactor: Update docs and tests to use get_template_data() (#1161) 2025-05-03 12:04:10 +02:00
test_autodiscover.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_benchmark_django.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_benchmark_django_small.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_benchmark_djc.py refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233) 2025-06-04 23:38:50 +02:00
test_benchmark_djc_small.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_cache.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_command_components.py feat: allow extensions to add commands (#1017) 2025-03-16 12:03:16 +01:00
test_command_create.py feat: allow extensions to add commands (#1017) 2025-03-16 12:03:16 +01:00
test_command_ext.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_command_list.py feat: add a command to list all components (#1041) 2025-03-19 09:38:25 +01:00
test_component.py refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233) 2025-06-04 23:38:50 +02:00
test_component_cache.py refactor: Instantiate component when rendering, and remove metadata stack (#1212) 2025-05-25 23:33:38 +02:00
test_component_defaults.py refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233) 2025-06-04 23:38:50 +02:00
test_component_highlight.py feat: extension defaults + docs + API cleanup (#1215) 2025-05-26 23:36:19 +02:00
test_component_media.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_component_typing.py refactor: simplify slot API (#1202) 2025-05-20 09:48:45 +02:00
test_component_view.py refactor: Instantiate component when rendering, and remove metadata stack (#1212) 2025-05-25 23:33:38 +02:00
test_context.py feat: on_render (#1231) 2025-06-04 19:30:03 +02:00
test_dependencies.py chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
test_dependency_manager.py refactor: prefix component ID with c (#1127) 2025-04-14 12:01:16 +02:00
test_dependency_rendering.py chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
test_dependency_rendering_e2e.py refactor: prefix component ID with c (#1127) 2025-04-14 12:01:16 +02:00
test_expression.py chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
test_extension.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_finders.py refactor: fix compat with Django 5.2 Finder.find() (#1121) 2025-04-12 09:35:33 +02:00
test_html_parser.py feat: add decorator for writing component tests (#1008) 2025-03-02 19:46:12 +01:00
test_loader.py feat: allow globs when specifynigg additionall JS and CSS (#1043) 2025-03-21 10:23:38 +01:00
test_node.py refactor: Add Node metadata (#1229) 2025-06-03 12:58:48 +02:00
test_registry.py refactor: Update docs and tests to use get_template_data() (#1161) 2025-05-03 12:04:10 +02:00
test_settings.py feat: add decorator for writing component tests (#1008) 2025-03-02 19:46:12 +01:00
test_signals.py refactor: Fix #1277 + Cache components' JS/CSS scripts at class creation (#1283) 2025-07-03 12:27:21 +02:00
test_slots.py refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233) 2025-06-04 23:38:50 +02:00
test_tag_formatter.py refactor: prefix component ID with c (#1127) 2025-04-14 12:01:16 +02:00
test_tag_parser.py chore: util to manage URLs in the codebase (#1179) 2025-05-11 14:59:34 +02:00
test_template.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_template_parser.py refactor: Update docs and tests to use get_template_data() (#1161) 2025-05-03 12:04:10 +02:00
test_templatetags.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_templatetags_component.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_templatetags_extends.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00
test_templatetags_provide.py refactor: Instantiate component when rendering, and remove metadata stack (#1212) 2025-05-25 23:33:38 +02:00
test_templatetags_slot_fill.py refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233) 2025-06-04 23:38:50 +02:00
test_templatetags_templating.py refactor: Rename {% fill default=... %} to {% fill fallback=... %} (#1190) 2025-05-19 19:05:39 +02:00
test_utils.py feat: add decorator for writing component tests (#1008) 2025-03-02 19:46:12 +01:00
testutils.py refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222) 2025-06-01 19:20:22 +02:00