mockintosh
Mocks for microservice environments (by up9inc)
VCR.py
Automatically mock your HTTP interactions to simplify and speed up testing (by kevin1024)
Our great sponsors
mockintosh | VCR.py | |
---|---|---|
4 | 6 | |
162 | 2,610 | |
3.1% | - | |
0.0 | 8.9 | |
over 1 year ago | 7 days ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mockintosh
Posts with mentions or reviews of mockintosh.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-18.
-
Mockintosh: Mocks for microservice environments
Mockintosh is a mock server generator that's capable to generate RESTful APIs or communicate with message queues to mimick asyncronous tasks. Such that it enables software development teams to work independently while building and maintaining a complicated microservice architecture.
- Mockintosh: Mocks for Microservice Environments
-
Deep-dive into Mockintosh - an Open Source Microservice Mocking
Recently I stumbled upon Mockintosh repo in GitHub from my LinkedIn feed. Then I started exploring on my own, for couple days by going through the documentation and the code. This blog article will deep-dive into Mockintosh, how you can get started, how it will be useful from performance testing perspective and more.
VCR.py
Posts with mentions or reviews of VCR.py.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-16.
-
Please recommend a good API Mocking tool
I made a library for this: https://github.com/kevin1024/vcrpy
-
3 Ways to Unit Test REST APIs in Python
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. VCR.py is a library that simplifies a lot the tests that make HTTP requests.
- My Python testing style guide – Stargirl (Thea) Flowers
-
Two Methods for Testing HTTPS API Calls with Python and pytest and also Communicating with the In-laws
Unfortunately, VCR.py only supports a certain number of HTTP client libraries. Thankfully, some very popular implementations are included: the Python built-in urllib and http.client, as well as requests, urllib3, and aiohttp. And, while it may not be listed in the docs at the time of this writing, the changelog notes that HTTPX is also supported. Sadly, pycurl is not supported.
-
Magic numbers for Verify?
I don't normally work in Python, so I'm not used to writing mocks. You should be able to mock the client, but if that is too much you might look into something like VCR.py which records underlying HTTP interactions and then plays them back in further tests. (Make sure to redact any API keys from the cassettes though.)
-
playback-proxy - record communication between client and server and play it back later during testing
https://betamax.readthedocs.io/en/latest/ https://github.com/kevin1024/vcrpy
What are some alternatives?
When comparing mockintosh and VCR.py you can also consider the following projects:
Tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
responses - A utility for mocking out the Python Requests library.
Mockintosh-Samples
mock - The Python mock library
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
betamax - A VCR imitation designed only for python-requests.
handlebars.js - Minimal templating on steroids.
Moto - A library that allows you to easily mock out tests based on AWS infrastructure.
freezegun - Let your Python tests travel through time
httmock - A mocking library for requests