10 Best Vanilla Python Mocking Libraries

List hand-picked by Openbase Experts
Learn More

mot

moto

A library that allows you to easily mock out tests based on AWS infrastructure.

License Icon
License: Apache
User RatingN/A
Top Feedback
N/A
GitHub Stars
5K
Weekly Downloads
0
Last Commit
2mos ago
fak

Faker

Faker is a Python package that generates fake data for you.

License Icon
License: MIT License
User RatingN/A
Top Feedback
N/A
GitHub Stars
13K
Weekly Downloads
0
Last Commit
1mo ago
mim

mimesis

Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
1mo ago
tm

time-machine

Travel through time in your tests.

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
242
Weekly Downloads
0
Last Commit
1mo ago

responses

A utility for mocking out the Python Requests library.

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
2mos ago
htt

httpretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
3mos ago

cornell

Cornell - record & replay mock server

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
120
Weekly Downloads
0
Last Commit
3mos ago
moc

mocket

a socket mock framework - for all kinds of socket animals, web-clients included

License Icon
License: BSD
User RatingN/A
Top Feedback
N/A
GitHub Stars
222
Weekly Downloads
0
Last Commit
2mos ago
fre

freezegun

Let your Python tests travel through time

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
5mos ago
vcr

vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
3mos ago
pmg

pytest-mock-generator

A pytest fixture wrapper for https://pypi.org/project/mock-generator

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
0
Last Commit
5mos ago
fau

fauxfactory

Generates random data for your tests.

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
35
Weekly Downloads
0
Last Commit
10mos ago
moc

mock

Rolling backport of unittest.mock for all Pythons

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A
pic

picka

pip install picka - Picka is a python based data generation and randomization module which aims to increase coverage by increasing the amount of tests you _dont_ have to write by hand.

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
109
Weekly Downloads
0
Last Commit
2yrs ago
htt

httmock

A mocking library for requests

License Icon
License: Apache-2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
431
Weekly Downloads
0
Last Commit
1yr ago
fak

fake2db

create custom test databases that are populated with fake data

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
2yrs ago
pl

pytest-libfaketime

A python-libfaketime plugin for pytest.

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A
dou

doublex

Python test doubles

License Icon
License: GPLv3
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A
cal

callee

Argument matchers for unittest.mock

License Icon
License: BSD
User RatingN/A
Top Feedback
N/A
GitHub Stars
68
Weekly Downloads
0
Last Commit
2yrs ago
rad

radar

Generate random date(time) in Python.

License Icon
License: GPL 2.0/LGPL 2.1
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
0
Last Commit
8yrs ago