(self)
| 17 | submit_github_task(task_data=task_data, action=CeleryAction.GITHUB_TASK_TASK, delay_flag=False) |
| 18 | |
| 19 | def test_github_monitor_task(self): |
| 20 | task_data = { |
| 21 | "name": "test github cron", |
| 22 | "keyword": "password imhn1ms", |
| 23 | "start_time": "-", |
| 24 | "end_time": "-", |
| 25 | "github_scheduler_id": "60c99bea6591e74c1ddc1f46", |
| 26 | "status": TaskStatus.WAITING, |
| 27 | } |
| 28 | # 下发周期运行任务 |
| 29 | submit_github_task(task_data=task_data, action=CeleryAction.GITHUB_TASK_MONITOR, delay_flag=False) |
| 30 | |
| 31 | |
| 32 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected