[PR #956] [MERGED] Adding Mocket #862

Closed
opened 2025-11-06 13:04:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/956
Author: @mindflayer
Created: 10/17/2017
Status: Merged
Merged: 1/30/2018
Merged by: @vinta

Base: masterHead: master


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/956 **Author:** [@mindflayer](https://github.com/mindflayer) **Created:** 10/17/2017 **Status:** ✅ Merged **Merged:** 1/30/2018 **Merged by:** [@vinta](https://github.com/vinta) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`e5483df`](https://github.com/vinta/awesome-python/commit/e5483df3ac1d99d59aaeca34b2c385af83053044) Adding Mocket. ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## 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 :+1: to it, and usually, the maintainer will merge it when votes reach **20**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:04:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#862