MCPcopy
hub / github.com/django/django / enable

Method enable

django/test/utils.py:949–953  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

947 super().__init__(**kwargs)
948
949 def enable(self):
950 self.old_apps = Options.default_apps
951 apps = Apps(self.installed_apps)
952 setattr(Options, "default_apps", apps)
953 return apps
954
955 def disable(self):
956 setattr(Options, "default_apps", self.old_apps)

Callers 2

enableMethod · 0.45
__init__Method · 0.45

Calls 1

AppsClass · 0.90

Tested by

no test coverage detected