Comparison
flexmock vs 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 flexmockRolling backport of unittest.mock for all Pythons
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases. It brings a standard-library module to older Pythons: on current versions, use the built-in one.
$
pip install mockIn short
- mock is the most used: 21M downloads a month, 162× more than flexmock.
- flexmock is better maintained: Pythie’s Index 58 against 29.
- flexmock is growing fastest: downloads +32% over the last month.