Python Mock

Open-source Python projects categorized as Mock

Top 23 Python Mock Projects

  • Moto

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

  • Project mention: OpenTF Announces Fork of Terraform | news.ycombinator.com | 2023-08-25

    > OpenMoto

    I dunno if you're trying to play on "hashimoto" but https://github.com/getmoto/moto#readme would be a prime name collision for any such "OpenMoto" name

    But yes, please, to adopting Vault. I don't have a horse in the race about Consul but my suspicion is such an effort would only be worthwhile if trying to adopt Nomad, too, which I gravely doubt

  • Mimesis

    Mimesis is a powerful Python library that empowers developers to generate massive amounts of synthetic data efficiently.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • responses

    A utility for mocking out the Python Requests library.

  • Project mention: Please recommend a good API Mocking tool | /r/django | 2023-05-16
  • freezegun

    Let your Python tests travel through time

  • Project mention: About time: how to unit test code that depends on time | news.ycombinator.com | 2023-12-19

    * in C++.

    On Python, just use freezegun to inject controllable timestamps in response to calls to time methods.

    https://github.com/spulec/freezegun

  • VCR.py

    Automatically mock your HTTP interactions to simplify and speed up testing

  • Project mention: Please recommend a good API Mocking tool | /r/django | 2023-05-16

    I made a library for this: https://github.com/kevin1024/vcrpy

  • httpretty

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

  • time-machine

    Travel through time in your tests.

  • Project mention: About time: how to unit test code that depends on time | news.ycombinator.com | 2023-12-19

    Freezegun is pretty much unmaintained. You want time-machine https://github.com/adamchainz/time-machine

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • respx

    Mock HTTPX with awesome request patterns and response side effects 🦋

  • betamax

    A VCR imitation designed only for python-requests.

  • mock

    The Python mock library (by testing-cabal)

  • httmock

    A mocking library for requests

  • Mocket

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

  • fakeredis-py

    Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py.

  • mockintosh

    Mocks for microservice environments

  • cornell

    Cornell - record & replay mock server (by hiredscorelabs)

  • python-libfaketime

    A fast time mocking alternative to freezegun that wraps libfaketime.

  • apyr

    API mocking with Python.

  • mock-ssh-server

    Python mock SSH server for testing purposes

  • Mock Generator

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

  • megamock

    The developer experience (DevX) upgrade for Python mocking

  • pytest-mock-generator

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

  • mockafka-py

    Mockafka-py is a Python library designed for in-memory mocking of Kafka.[aiokafka - confluence-kafka-python]

  • Project mention: Show HN: Mock Kafka in Python for Testing | news.ycombinator.com | 2023-11-30
  • pymox

    Pymox - Python mocking on steroids

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Python Mock related posts

  • About time: how to unit test code that depends on time

    3 projects | news.ycombinator.com | 19 Dec 2023
  • Class Credentials does not exist

    1 project | /r/PHPhelp | 9 Jul 2023
  • Please recommend a good API Mocking tool

    2 projects | /r/django | 16 May 2023
  • What is the development enviroment for AWS?

    3 projects | /r/aws | 28 Apr 2023
  • Unit testing Athena ETL?

    1 project | /r/aws | 16 Mar 2023
  • Looking for resources for building unit testing for boto3 code and mocking AWS services in pytest

    1 project | /r/dataengineering | 27 Feb 2023
  • Guide to AWS Serverless & Lambda Testing Best Practices — Part 1

    2 projects | dev.to | 27 Feb 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 5 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Index

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

Project Stars
1 Moto 7,394
2 Mimesis 4,307
3 responses 4,045
4 freezegun 3,972
5 VCR.py 2,614
6 httpretty 2,093
7 time-machine 606
8 respx 560
9 betamax 558
10 mock 530
11 httmock 462
12 Mocket 274
13 fakeredis-py 240
14 mockintosh 162
15 cornell 141
16 python-libfaketime 70
17 apyr 56
18 mock-ssh-server 55
19 Mock Generator 36
20 megamock 33
21 pytest-mock-generator 30
22 mockafka-py 28
23 pymox 14

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com