Description
mock is a library for testing in Python. It allows you to replace parts of
your system under test with mock objects and make assertions about how they
have been used.
mock is now part of the Python standard library, available as unittest.mock in Python 3.3
onwards.
This package contains a rolling backport of the standard library mock code
compatible with Python 2.6 and up, and 3.3 and up.
Please see the standard library documentation for more details.
mock alternatives and similar packages
Based on the "Mock" category.
Alternatively, view mock alternatives based on common mentions on social networks and blogs.
-
Moto
A library that allows you to easily mock out tests based on AWS infrastructure. -
VCR.py
Automatically mock your HTTP interactions to simplify and speed up testing -
httpretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module -
Mocket
a socket mock framework - for all kinds of socket animals, web-clients included -
fakeredis
Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py. -
python-libfaketime
A fast time mocking alternative to freezegun that wraps libfaketime. -
Mock Generator
A tool to auto generate the basic mocks and asserts for faster unit testing -
Pytest Mock Generator
A pytest fixture wrapper for https://pypi.org/project/mock-generator
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of mock or a related project?