Note: This document is partially referenced from Sinon.JS. However, most usages and API are redesigned.

Sinon.PY is inspired by Sinon.JS. Standalone test spies, stubs and mocks for Python. No dependencies, works with any unit testing framework.


This document contains the entire Sinon.PY API documentation along with brief introductions and examples to the concepts Sinon implements.


New Ideas & Issues

Please send any defects, issues, feature requests to the Github. I would really appreciate it if people could work together to make Sinon.PY better, easier to work with.