feat: крролик, по тщ 5 лаба

This commit is contained in:
Enterxx2
2026-11-10 12:38:09 +03:00
parent 1d8dfb7ea4
commit 595a959b96
65 changed files with 2692 additions and 216 deletions
+6 -3
View File
@@ -86,7 +86,7 @@ def send_message(api: httpx.Client) -> Callable[..., dict]:
@pytest.fixture
def upload(api: httpx.Client) -> Callable[..., dict]:
"""Успешная загрузка вложения: 201 и Attachment"""
"""Приём 202 queued и ожидание ready для прежних сквозных проверок"""
def create(
user: dict,
@@ -98,8 +98,11 @@ def upload(api: httpx.Client) -> Callable[..., dict]:
response = upload_raw(
api, user, chat["id"], content or png_bytes(), content_type, filename
)
assert response.status_code == 201, response.text
return response.json()
assert response.status_code == 202, response.text
assert response.json()["status"] == "queued"
from helpers import wait_attachment
return wait_attachment(api, user, response.json()["id"])
return create