qa-unit-tests-python
Python unit testing with pytest: fixtures, parametrize, markers, mocking, coverage and CI, plus async tests with pytest-asyncio. Covers framework choice and test conventions, with unittest and doctest as references.
Install this plugin
View source (opens in a new tab)/plugin install qa-unit-tests-python@testland-qaFirst time? Add the marketplace with /plugin marketplace add testland/qa
Plugin
- Category
- Functional testing
- Version
v1.4.7- Contents
- 2 skills
- Part of
- qa-role-sdet
Skills2
pytest-asyncio-patternsConfigures and runs async Python tests with pytest-asyncio: installs the plugin, selects asyncio_mode (auto vs strict), scopes event loops (function/class/module/session), writes async fixtures with @pytest_asyncio.fixture, mocks coroutines with AsyncMock, and tests FastAPI (httpx.AsyncClient + ASGITransport) and aiohttp (aiohttp_client fixture) applications.skillpython-unit-testsUse whenever the task is to write, add, fix or review Python tests, even quick pytest tests for a single function: edge cases, fixtures and conftest.py, parametrize tables, mocking, markers, coverage gates and CI.skill
About qa-unit-tests-python
Python unit testing in one umbrella skill: pytest as the primary framework, with stdlib unittest and doctest as bundled references, plus a standalone skill for async testing with pytest-asyncio.
Per-framework lifecycle scope. Does not duplicate qa-test-review (test code hygiene).