Comparison
flexmock vs pytest-mock
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
flexmock is a testing library for Python that makes it easy to create mocks, stubs and fakes.
Maintained. Last release 3 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install flexmockThin-wrapper around the mock package for easier use with pytest
Actively maintained. Last release 6 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install pytest-mockIn short
- pytest-mock is the most used: 92M downloads a month, 709× more than flexmock.
- pytest-mock also has the best Pythie’s Index (77).
- flexmock is growing fastest: downloads +32% over the last month.
- Safe default for a new project: pytest-mock.
Side by side
| Metric | flexmock | pytest-mock |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 58 | 77 |