class documentation

class isolate_apps(TestContextDecorator):

View In Hierarchy

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 class
decorator.
kwarg_name: keyword argument passing the isolated registry if used as a
function decorator.
Method __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
def __init__(self, *installed_apps, **kwargs):
def disable(self):
def enable(self):
installed_apps =

Undocumented

old_apps =

Undocumented