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
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 askwarg_name
: keyword argument passing the return value of enable() ifMethod | __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 |