Thanks to @brycedrennan for underlining it
Thanks to @KyleKing for reporting it.
π€‘ https://github.com/mindflayer/python-mocket#example-of-how-to-fake-a-socket-errors
@mocketizedef 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)
β Thanks to @amotl for #111 and the related test at https://gist.github.com/amotl/015ef6b336db55128798d7f1a9a67dea
π Fix for second sendall used for delivering request's body.
β Thanks to @ajhodges for writing the test which reproduced the issue.
π€‘ Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.
Thanks to @jonringer for the contribution.
π This version ships the change to support the libmagic wrapper distributed with file's command.
π§ With this change and thanks to @felixonmars contribution, Mocket is now available as Arch Linux package: https://www.archlinux.org/packages/community/any/python-mocket/
π Support for tests based on unittest.IsolatedAsyncioTestCase (Python 3.8). See:
https://github.com/mindflayer/python-mocket/blob/master/tests/tests38/test_http_aiohttp.py
Thanks to @WisdomPill for the amazing contribution.
π Support for tests based on unittest.IsolatedAsyncioTestCase (Python 3.8). See:
https://github.com/mindflayer/python-mocket/blob/master/tests/tests38/test_http_aiohttp.py
Thanks to @WisdomPill for the amazing contribution.