class documentation
class TestContextDecorator: (source)
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 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 |
Undocumented |
Method | decorate |
Undocumented |
Method | disable |
Undocumented |
Method | enable |
Undocumented |
Instance Variable | attr |
Undocumented |
Instance Variable | kwarg |
Undocumented |