class isolate_apps(TestContextDecorator):
Act as either a decorator or a context manager to register models defined in its wrapped context to an isolated registry.
The list of installed apps the isolated registry should contain must be passed as arguments.
Two optional keyword arguments can be specified:
attr_name
: attribute assigned the isolated registry if used as a classkwarg_name
: keyword argument passing the isolated registry if used as aMethod | __init__ |
Undocumented |
Method | disable |
Undocumented |
Method | enable |
Undocumented |
Instance Variable | installed_apps |
Undocumented |
Instance Variable | old_apps |
Undocumented |
Inherited from TestContextDecorator
:
Method | __call__ |
Undocumented |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | decorate_callable |
Undocumented |
Method | decorate_class |
Undocumented |
Instance Variable | attr_name |
Undocumented |
Instance Variable | kwarg_name |
Undocumented |