fix: fix woodpecker pipelines
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/type Pipeline was successful
ci/woodpecker/pr/comment_pr Pipeline was successful

This commit is contained in:
2026-04-26 10:29:02 +03:00
parent 32b8b4d02b
commit 094028148d
25 changed files with 334 additions and 112 deletions

View File

@@ -1,12 +1,14 @@
# API test fixtures
# Provides: httpx.AsyncClient, authentication helpers, test API data
from typing import AsyncGenerator
import pytest
from httpx import ASGITransport, AsyncClient
@pytest.fixture
async def client():
async def client() -> AsyncGenerator[AsyncClient, None]:
"""Create async HTTP client for API testing."""
from app.main import app_factory
@@ -17,6 +19,6 @@ async def client():
@pytest.fixture
def auth_headers():
def auth_headers() -> dict[str, str]:
"""Return mock authentication headers."""
return {"Authorization": "Bearer test_token"}