Files
blog.pyaqa.ru/tests/integration/conftest.py
Sergey Vanyushkin 65158a8760
All checks were successful
ci/woodpecker/pr/lints Pipeline was successful
ci/woodpecker/pr/tests Pipeline was successful
ci/woodpecker/pr/types Pipeline was successful
fix: fix woodpecker pipelines
2026-04-26 14:45:23 +03:00

21 lines
468 B
Python

# Integration test fixtures
# Provides: test database, external service connections
from typing import Generator
import pytest
@pytest.fixture
def test_db_connection() -> Generator[str, None, None]:
"""Create test database connection."""
# TODO: Implement when DB is added to project
yield "test_db"
@pytest.fixture
def cleanup_db() -> Generator[None, None, None]:
"""Cleanup database after test."""
yield
# TODO: Implement cleanup logic