(self, info: ValidationInfo)
| 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() |