MCPcopy
hub / github.com/django/django / tearDown

Method tearDown

tests/model_options/test_tablespaces.py:42–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 model._meta.managed = True
41
42 def tearDown(self):
43 for model in Article, Authors, Reviewers, Scientist:
44 model._meta.managed = False
45
46 apps.app_configs["model_options"].models = self._old_models
47 apps.all_models["model_options"] = self._old_models
48 apps.clear_cache()
49
50 def assertNumContains(self, haystack, needle, count):
51 real_count = haystack.count(needle)

Callers

nothing calls this directly

Calls 1

clear_cacheMethod · 0.45

Tested by

no test coverage detected