feat: конф нгинкс, тесты, ключ идмпт etc

This commit is contained in:
Enterxx2
2026-10-20 10:41:56 +03:00
parent aa971fbd27
commit b53e5d1077
63 changed files with 5013 additions and 153 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ from pathlib import Path
import httpx
import pytest
from helpers import auth, basic, unique_password, unique_username
from helpers import auth, basic, message_headers, unique_password, unique_username
ROOT = Path(__file__).resolve().parents[1]
DEFAULT_BASE_URL = json.loads((ROOT / "lab.json").read_text())["default_base_url"]
@@ -68,7 +68,7 @@ def send_message(api: httpx.Client) -> Callable[..., dict]:
response = api.post(
f"/api/v1/chats/{chat['id']}/messages",
json={"text": text},
headers=auth(user),
headers=message_headers(user),
)
assert response.status_code == 201, response.text
return response.json()