Skip to main content

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

NameTypeDescription
debugboolean = NoneOptional flag to override the DEBUG setting during tests; if not provided, the current settings.DEBUG value is used.

Returns

TypeDescription
nullNothing is returned; the function modifies global state and settings for the duration of the test session.