Testing APIยค
djc_test ยค
djc_test(django_settings: Union[Optional[Dict], Callable, Type] = None, components_settings: Optional[Dict] = None, parametrize: Optional[Union[Tuple[Sequence[str], Sequence[Sequence[Any]]], Tuple[Sequence[str], Sequence[Sequence[Any]], Optional[Union[Iterable[Union[None, str, float, int, bool]], Callable[[Any], Optional[object]]]]]]] = None, gc_collect: bool = True) -> Callable
-
Decorator for testing components from django-components.
@djc_test
manages the global state of django-components, ensuring that each test is properly isolated and that components registered in one test do not affect other tests.
This decorator can be applied to a function, method, or a class. If applied to a class, it will search for all methods that start with test_
, and apply the decorator to them. This is applied recursively to nested classes as well.
Examples:
Applying to a function:
Decorator for testing components from django-components.
@djc_test
manages the global state of django-components, ensuring that each test is properly isolated and that components registered in one test do not affect other tests.
This decorator can be applied to a function, method, or a class. If applied to a class, it will search for all methods that start with test_
, and apply the decorator to them. This is applied recursively to nested classes as well.
Examples:
Applying to a function:
from django_components.testing import djc_test
@djc_test
def test_my_component():
diff --git a/dev/releases/index.html b/dev/releases/index.html
index c38a2626..b44aef54 100644
--- a/dev/releases/index.html
+++ b/dev/releases/index.html
@@ -112,4 +112,4 @@
font-size: 0.63rem;
margin-top: 0.7rem;
}
- Release Notesยค
Here you can find the release notes for all versions of Django-Components.
- v0.141.4
- v0.141.3
- v0.141.2
- v0.141.1
- v0.141.0
- v0.140.1
- v0.140.0 ๐จ๐ข
- v0.139.1
- v0.139.0
- v0.138
- v0.137
- v0.136 ๐จ๐ข
- v0.135
- v0.134
- v0.133
- v0.132
- v0.131
- v0.130
- v0.129
- v0.128
- v0.127
- v0.126
- v0.125
- v0.124
- v0.123
- v0.122
- v0.121
- v0.120
- v0.119
- v0.118
- v0.117
- v0.116
- v0.115
- v0.114
- v0.113
- v0.112
- v0.111
- v0.110 ๐จ๐ข (2024-11-25)
- v0.100 ๐จ๐ข (2024-09-11)
- v0.97 (2024-09-06)
- v0.96 (2024-09-04)
- v0.95 (2024-08-29)
- v0.94 (2024-08-28)
- v0.93 (2024-08-27)
- v0.92 ๐จ๐ข (2024-08-22)
- v0.90 (2024-08-18)
- v0.85 ๐จ๐ข (2024-07-29)
- v0.81 ๐จ๐ข (2024-06-12)
- v0.80 (2024-06-01)
- v0.79 ๐จ๐ข (2024-06-01)
- v0.77 ๐จ๐ข (2024-05-23)
- v0.74 (2024-05-12)
- v0.70 ๐จ๐ข (2024-05-01)
- v0.67 (2024-04-17)
- v0.50 ๐จ๐ข (2024-02-26)
- v0.34 (2024-01-27)
- v0.28 (2023-05-18)
- v0.27 (2023-04-11)
- v0.26 ๐จ๐ข (2023-03-14)
- v0.22 (2022-07-26)
- v0.17 (2021-09-10)