setup_test_environment
Perform global pre-test setup, such as installing the instrumented template renderer and setting the email backend to the locmem email backend.
def setup_test_environment(
debug: boolean = None
) - > null
Perform global pre-test setup, such as installing the instrumented template renderer and setting the email backend to the locmem email backend.
Parameters
| Name | Type | Description |
|---|---|---|
| debug | boolean = None | Optional flag to override the DEBUG setting during tests; if not provided, the current settings.DEBUG value is used. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies global state and settings for the duration of the test session. |