home/categories/testing/aiskillstore-marketplace-skills-bossjones-pytest-mock-guide-skill-md
testingtesting-security

pytest-mock-guide

Guide for using pytest-mock plugin to write tests with mocking. Use when writing pytest tests that need mocking, patching, spying, or stubbing. Covers mocker fixture usage, patch methods, spy/stub patterns, and assertion helpers.

aiskillstore
maintainer
aiskillstore
Updated 1/20/2026
Stars
90
Forks
3
quick start

Installation and usage

Guide for using pytest-mock plugin to write tests with mocking. Use when writing pytest tests that need mocking, patching, spying, or stubbing. Covers mocker fixture usage, patch methods, spy/stub patterns, and assertion helpers.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use pytest-mock-guide