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

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • Mimesis

    Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.

  • responses

    A utility for mocking out the Python Requests library.

  • 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

  • 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

  • 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
  • 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 discussion

Log in or Post with

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 - SaaSHub
    www.saashub.com | 16 Jun 2024
    SaaSHub helps you find the best software and product alternatives 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,457
2 Mimesis 4,322
3 responses 4,071
4 freezegun 4,007
5 VCR.py 2,633
6 httpretty 2,102
7 time-machine 618
8 respx 576
9 betamax 562
10 mock 531
11 httmock 463
12 Mocket 276
13 fakeredis-py 254
14 mockintosh 162
15 cornell 141
16 python-libfaketime 70
17 apyr 56
18 mock-ssh-server 56
19 Mock Generator 36
20 megamock 33
21 pytest-mock-generator 31
22 mockafka-py 28
23 pymox 14

Sponsored
Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com