Skip to content

Releases: mindflayer/python-mocket

3.9.36: New mocket method for checking if all entries have been served (#137)

11 Jan 15:08
b64c5df
Compare
Choose a tag to compare
* Mocket method for checking if all entries have been served at least once.

Removing Python 2 compatibility layer

02 Jan 14:21
a49f071
Compare
Choose a tag to compare
Removing Python 2 compatibility layer (#134)

* Removing Python 2 compatibility layer.

Fix for new version of `pip` resolver

02 Dec 22:34
1ee3fb9
Compare
Choose a tag to compare

Fix for `socket.makefile`

09 Nov 10:56
e77cf73
Compare
Choose a tag to compare

Thanks to @KyleKing for reporting it.

Mocket can fake socket errors

11 Oct 11:04
adefc72
Compare
Choose a tag to compare

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

09 Oct 18:40
e723252
Compare
Choose a tag to compare

MockHTTP uses `http-parser` as parser

20 Sep 13:04
b414471
Compare
Choose a tag to compare

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

11 Sep 10:03
Compare
Choose a tag to compare

Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.

Small fix applied to `setup.py`

19 Aug 07:55
Compare
Choose a tag to compare

Thanks to @jonringer for the contribution.

Support for file's builtin python wrapper

27 Jul 17:04
Compare
Choose a tag to compare

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/