Comparison
mockito vs pretend
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Spying framework
Maintained. Last release 8 months ago.
$
pip install mockitoA library for stubbing in Python
Likely abandoned. No release or commit for years (last release over 8 years ago).
$
pip install pretendIn short
- pretend looks abandoned: avoid it for new projects.
- mockito is the most used: 1.3M downloads a month, 6.6× more than pretend.
- mockito also has the best Pythie’s Index (67).
- Safe default for a new project: mockito.