MCPcopy Create free account
hub / github.com/celery/celery / validate_context

Method validate_context

t/unit/app/test_app.py:958–962  ·  view source on GitHub ↗
(self, info: ValidationInfo)

Source from the content-addressed store, hash-verified

956
957 @model_validator(mode='after')
958 def validate_context(self, info: ValidationInfo):
959 context = info.context
960 assert context
961 assert context.get('celery_task_name') == 't.unit.app.test_app.task'
962 return self
963
964 with self.Celery() as app:
965 check = Mock()

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected