class documentation

class TestContextDecorator:

Known subclasses: django.test.utils.ignore_warnings, django.test.utils.isolate_apps, django.test.utils.override_script_prefix, django.test.utils.override_settings, django.test.utils.override_system_checks

View In Hierarchy

A base class that can either be used as a context manager during tests or as a test function or unittest.TestCase subclass decorator to perform temporary alterations.

attr_name: attribute assigned the return value of enable() if used as
a class decorator.
kwarg_name: keyword argument passing the return value of enable() if
used as a function decorator.
Method __call__ Undocumented
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method decorate​_callable Undocumented
Method decorate​_class Undocumented
Method disable Undocumented
Method enable Undocumented
Instance Variable attr​_name Undocumented
Instance Variable kwarg​_name Undocumented
def __call__(self, decorated):

Undocumented

def __enter__(self):

Undocumented

def __exit__(self, exc_type, exc_value, traceback):

Undocumented

def decorate_callable(self, func):

Undocumented

def decorate_class(self, cls):

Undocumented

attr_name =

Undocumented

kwarg_name =

Undocumented