Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Mocket #956

Merged
merged 1 commit into from Jan 30, 2018
Merged

Adding Mocket #956

merged 1 commit into from Jan 30, 2018

Conversation

mindflayer
Copy link
Contributor

What is this Python project?

It’s a framework, actually a socket mock framework, and the proof of its reliability as framework is that both the HTTP mocking module (à la HTTPretty) and the basic Redis mock have been implemented using Mocket, and nothing more than that.

What's the difference between this Python project and similar ones?

  • It has SSL support, and of course HTTPS if we talk about its HTTP mock.
  • It works well with others (e.g. pytest fixtures is one example, pook is another).
  • It supports PyPy, gevent and asyncio/aiohttp.
  • It dumps (as JSON files) everything that calls the sendall function on a true socket (recording functionality à la vcrpy).
  • It strongly supports Python 3, since the very beginning. And yes, it’s definitely a big feature (ask HTTPretty users to better understand what does “supporting Py3” mean).
  • Its APIs never changed. Frameworks should care about backward compatibility, and Mocket take it seriously.
  • ~100% test coverage. Yes, that’s another important feature.
  • HTTPretty compatibility layer (regex urls and body as function missing)

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.

@mindflayer
Copy link
Contributor Author

Hi @vinta, what about this PR? Are you going to merge it?

@vinta vinta merged commit 1e2f32b into vinta:master Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants