Releases: mindflayer/python-mocket
Releases · mindflayer/python-mocket
3.9.38
Update __init__.py
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.