python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included

BSD-3-CLAUSE License

Downloads
15.8K
Stars
272
Committers
20

Bot releases are hidden (Show)

python-mocket - Pinning `decorator<5`

Published by mindflayer over 3 years ago

Fix for #148, thanks to @WisdomPill for opening the issue.

python-mocket - Increasing support for `asyncio`

Published by mindflayer over 3 years ago

Thanks to @fvigo mocket is now able to deal with asyncio.create_connection() and true non-blocking sockets.

python-mocket -

Published by mindflayer almost 4 years ago

  • Adding support for using a socket as a context manager as requested by #139.
  • Closing real socket.
  • Bump version.

Thanks to @fvigo for the contribution.

python-mocket -

Published by mindflayer almost 4 years ago

python-mocket -

Published by mindflayer almost 4 years ago

python-mocket - Removing Python 2 compatibility layer

Published by mindflayer almost 4 years ago

python-mocket - Fix for new version of `pip` resolver

Published by mindflayer almost 4 years ago

Thanks to @brycedrennan for underlining it

python-mocket - Fix for `socket.makefile`

Published by mindflayer almost 4 years ago

Thanks to @KyleKing for reporting it.

python-mocket - Mocket can fake socket errors

Published by mindflayer about 4 years ago

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)
python-mocket - MicroPython's urequests support

Published by mindflayer about 4 years ago

Thanks to @amotl for #111 and the related test at https://gist.github.com/amotl/015ef6b336db55128798d7f1a9a67dea

python-mocket - MockHTTP uses `http-parser` as parser

Published by mindflayer about 4 years ago

Fix for second sendall used for delivering request's body.

Thanks to @ajhodges for writing the test which reproduced the issue.

python-mocket - Small refactor for HTTPretty plugin

Published by mindflayer about 4 years ago

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

python-mocket - Small fix applied to `setup.py`

Published by mindflayer about 4 years ago

Thanks to @jonringer for the contribution.

python-mocket - Support for file's builtin python wrapper

Published by mindflayer about 4 years ago

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/

python-mocket - Support for IsolatedAsyncioTestCase

Published by mindflayer over 4 years ago

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.

python-mocket - Adding missing `load_verify_locations` method

Published by mindflayer over 4 years ago

python-mocket - Removing `hexdump` dependency

Published by mindflayer over 4 years ago

python-mocket -

Published by mindflayer over 4 years ago

python-mocket - Py3.8 classifier

Published by mindflayer almost 5 years ago

python-mocket - Fix for Redis module

Published by mindflayer almost 5 years ago

Fix for current Redis connection management implementation.
Bump version for Python 3.8.

Package Rankings
Top 3.08% on Pypi.org
Related Projects