MCPcopy
hub / github.com/celery/celery / _prepare_setup

Method _prepare_setup

t/integration/test_security.py:54–65  ·  view source on GitHub ↗
(self, manager)

Source from the content-addressed store, hash-verified

52
53 @pytest.fixture(autouse=True)
54 def _prepare_setup(self, manager):
55 manager.app.conf.update(
56 security_key=f'{self.tmpdir}/{self.key_name}',
57 security_certificate=f'{self.tmpdir}/{self.cert_name}',
58 security_cert_store=f'{self.tmpdir}/*.pem',
59 task_serializer='auth',
60 event_serializer='auth',
61 accept_content=['auth'],
62 result_accept_content=['json']
63 )
64
65 manager.app.setup_security()
66
67 def gen_private_key(self):
68 """generate a private key with cryptography"""

Callers

nothing calls this directly

Calls 2

setup_securityMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected