add queue tests

This commit is contained in:
Dmitry Afanasyev
2023-09-22 02:39:17 +03:00
committed by GitHub
parent 010a228380
commit 1ecf95631d
16 changed files with 212 additions and 86 deletions

View File

@@ -19,10 +19,11 @@ async def healthcheck() -> ORJSONResponse:
@router.post(
f"/{settings.bot_webhook_url}",
f"/{settings.TELEGRAM_API_TOKEN}",
name="system:process_bot_updates",
status_code=status.HTTP_202_ACCEPTED,
summary="process bot updates",
include_in_schema=False,
)
async def process_bot_updates(request: Request) -> ORJSONResponse:
await request.app.state.queue.put_updates_on_queue(request)