Skip to content

Releases: mindflayer/python-mocket

3.9.38

11 Jan 18:42
bce7cde

Choose a tag to compare

Update __init__.py

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

11 Jan 15:08
b64c5df

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

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

Choose a tag to compare

Fix for `socket.makefile`

09 Nov 10:56
e77cf73

Choose a tag to compare

Thanks to @KyleKing for reporting it.

Mocket can fake socket errors

11 Oct 11:04
adefc72

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

Choose a tag to compare

MockHTTP uses `http-parser` as parser

20 Sep 13:04
b414471

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

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

Choose a tag to compare

Thanks to @jonringer for the contribution.