require_jinja2
Decorator to enable a Jinja2 template engine in addition to the regular Django template engine for a test or skip it if Jinja2 isn't available.
def require_jinja2(
test_func: callable
) - > function
Decorator to enable a Jinja2 template engine in addition to the regular Django template engine for a test or skip it if Jinja2 isn't available.
Parameters
| Name | Type | Description |
|---|---|---|
| test_func | callable | The test function or method to be decorated with Jinja2 support |
Returns
| Type | Description |
|---|---|
function | The wrapped test function with modified Django settings and conditional skip logic applied |