test-setup-async
Installation
SKILL.md
Setup Async Testing
Purpose
Provide correct patterns for testing async functions in Python using pytest-asyncio, AsyncMock, and async fixtures. Ensures tests properly handle async context managers, side effects, and cleanup.
Quick Start
Most common use case:
# Testing an async function with mocked dependencies
import pytest
from unittest.mock import AsyncMock
@pytest.mark.asyncio
async def test_my_async_function():
mock_service = AsyncMock()
mock_service.fetch_data.return_value = {"result": "success"}
Related skills