MCPcopy
hub / github.com/celery/celery / test_django_setup

Method test_django_setup

t/unit/fixups/test_django.py:438–444  ·  view source on GitHub ↗
(self, patching)

Source from the content-addressed store, hash-verified

436 run_checks.assert_not_called()
437
438 def test_django_setup(self, patching):
439 patching('celery.fixups.django.symbol_by_name')
440 patching('celery.fixups.django.import_module')
441 django, = patching.modules('django')
442 f = self.Fixup(self.app)
443 f.django_setup()
444 django.setup.assert_called_with()
445
446 def test__is_prefork(self):
447 with self.fixup_context(self.app) as (f, _, _):

Callers

nothing calls this directly

Calls 3

patchingFunction · 0.85
django_setupMethod · 0.80
modulesMethod · 0.45

Tested by

no test coverage detected