Python Mock

Open-source Python projects categorized as Mock | Edit details
Related topics: #Testing #Python #HTTP #Mocking #API

Top 18 Python Mock Projects

  • Moto

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

    Project mention: Understanding the term serverless from both developer and business point of view | | 2022-05-01
  • Mimesis

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

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • responses

    A utility for mocking out the Python Requests library.

  • freezegun

    Let your Python tests travel through time

    Project mention: Microsoft Exchange stops passing mail due to bug on 1/1/22 | | 2022-01-01

    Automatically mock your HTTP interactions to simplify and speed up testing

    Project mention: 3 Ways to Unit Test REST APIs in Python | | 2021-07-22

    Now it’s finally the time to discuss our last option. I have only found about it quite recently, frankly. I’ve been using mocks for a long time and always had some problem with them. is a library that simplifies a lot the tests that make HTTP requests.

  • httpretty

    Intercept HTTP requests at the Python socket level. Fakes the whole socket module (by gabrielfalcao)

  • mock

    The Python mock library (by testing-cabal)

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • betamax

    A VCR imitation designed only for python-requests.

  • httmock

    A mocking library for requests

  • time-machine

    Travel through time in your tests.

    Project mention: Running C unit tests with pytest | | 2022-02-12

    There are lots of good mocking fixtures available for pytest. I've used this one for clock stuff in the past:

  • Mocket

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

  • cornell

    Cornell - record & replay mock server (by hiredscorelabs)

  • mockintosh

    Mocks for microservice environments

  • python-libfaketime

    A fast time mocking alternative to freezegun that wraps libfaketime.

  • apyr

    API mocking with Python.

  • Mock Generator

    A tool to auto generate the basic mocks and asserts for faster unit testing

  • pytest-mock-generator

    A pytest fixture wrapper for

  • pymox

    Pymox - open source mock object framework for Python

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-01.

Python Mock related posts


What are some of the best open-source Mock projects in Python? This list will help you:

Project Stars
1 Moto 5,855
2 Mimesis 3,601
3 responses 3,571
4 freezegun 3,271
5 2,238
6 httpretty 1,953
7 mock 509
8 betamax 500
9 httmock 444
10 time-machine 298
11 Mocket 231
12 cornell 129
13 mockintosh 101
14 python-libfaketime 63
15 apyr 54
16 Mock Generator 27
17 pytest-mock-generator 20
18 pymox 7
Find remote jobs at our new job board There are 9 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives