a socket mock framework - for all kinds of socket animals, web-clients included
httpx
by @mindflayer in https://github.com/mindflayer/python-mocket/pull/186
fastapi
by @mindflayer in https://github.com/mindflayer/python-mocket/pull/188
Full Changelog: https://github.com/mindflayer/python-mocket/compare/3.10.7...3.10.8
httpx
by @mindflayer in https://github.com/mindflayer/python-mocket/pull/183
Thanks to @gregbrowndev for openinig #182.
Full Changelog: https://github.com/mindflayer/python-mocket/compare/3.10.6...3.10.7
mock
dependency by @mindflayer in https://github.com/mindflayer/python-mocket/pull/179
Full Changelog: https://github.com/mindflayer/python-mocket/compare/3.10.5...3.10.6
Full Changelog: https://github.com/mindflayer/python-mocket/compare/3.10.4...3.10.5
Pass strict_mode=True
when calling @mocketizer()
or with Mocketizer()
to make your test case fail in case it tries to use the real socket
module.
Use Mocket.request_list()
instead of Mocket._requests
.
Entry.collect()
is now able to tell us (but it does not have to) to skip consuming a response and leave the current socket untouched.
Thanks @ykharko for opening issue #158.
Thanks to @micheles for the hints.