feat: implement blog project with CI pipeline

This commit is contained in:
2026-04-25 19:19:33 +03:00
parent ce8073da2c
commit 32b8b4d02b
34 changed files with 1078 additions and 0 deletions

22
tests/api/conftest.py Normal file
View File

@@ -0,0 +1,22 @@
# API test fixtures
# Provides: httpx.AsyncClient, authentication helpers, test API data
import pytest
from httpx import ASGITransport, AsyncClient
@pytest.fixture
async def client():
"""Create async HTTP client for API testing."""
from app.main import app_factory
app = app_factory()
transport = ASGITransport(app=app)
async with AsyncClient(transport=transport, base_url="http://test") as ac:
yield ac
@pytest.fixture
def auth_headers():
"""Return mock authentication headers."""
return {"Authorization": "Bearer test_token"}