Files
blog.pyaqa.ru/tests/unit/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

19 lines
375 B
Python

# Unit test fixtures
# Provides: mocks, stubs, isolated test data
from unittest.mock import AsyncMock, Mock
import pytest
@pytest.fixture
def mock_service() -> Mock:
"""Create a mock service for unit testing."""
return Mock()
@pytest.fixture
def mock_async_service() -> AsyncMock:
"""Create an async mock service for unit testing."""
return AsyncMock()