Releases: mindflayer/python-mocket
3.9.36: New mocket method for checking if all entries have been served (#137)
* Mocket method for checking if all entries have been served at least once.
Removing Python 2 compatibility layer
Removing Python 2 compatibility layer (#134) * Removing Python 2 compatibility layer.
Fix for new version of `pip` resolver
Thanks to @brycedrennan for underlining it
Fix for `socket.makefile`
Thanks to @KyleKing for reporting it.
Mocket can fake socket errors
https://github.com/mindflayer/python-mocket#example-of-how-to-fake-a-socket-errors
@mocketize
def test_raise_exception(self):
url = "http://github.com/fluidicon.png"
Entry.single_register(Entry.GET, url, exception=socket.error())
with self.assertRaises(requests.exceptions.ConnectionError):
requests.get(url)
MicroPython's urequests support
Thanks to @amotl for #111 and the related test at https://gist.github.com/amotl/015ef6b336db55128798d7f1a9a67dea
MockHTTP uses `http-parser` as parser
Fix for second sendall
used for delivering request's body.
Thanks to @ajhodges for writing the test which reproduced the issue.
Small refactor for HTTPretty plugin
Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified
.
Small fix applied to `setup.py`
Thanks to @jonringer for the contribution.
Support for file's builtin python wrapper
This version ships the change to support the libmagic
wrapper distributed with file
's command.
With this change, thanks to @felixonmars contribution, Mocket is now available as Arch Linux package: https://www.archlinux.org/packages/community/any/python-mocket/