Releases: mindflayer/python-mocket
Releases · mindflayer/python-mocket
3.12.5
3.12.4
What's Changed
- When creating true socket connection, use host and port stored in instance variables, not in the Mocket class's variable by @ento in #222
- Switching to Compose v2 by @mindflayer in #223
- Add allowed locations (whitelist) for STRICT mode by @mindflayer (refactoring of #214 from @ento) in #224
Full Changelog: 3.12.3...3.12.4
Better aiohttp support plus minor bugfixes
What's Changed
- Fixes for allowing making a mixture of unmocked and mocked HTTPS requests using aiohttp by @ento in #213
- Merging external contribution by @mindflayer in #219
- Adding testcase for proving #209 was fixed by @mindflayer in #220
New Contributors
Full Changelog: 3.12.2...3.12.3
Pook plugin available for Python versions newer than 3.10
What's Changed
- Pook is now compatible with modern Python versions by @mindflayer in #211
- Excluding venvs from dist packages by @mindflayer in #212
Thanks to @sarayourfriend for the hint about pook
Full Changelog: 3.12.0...3.12.2
Support for Python 3.12
Support for Python 3.12 (#204) * Fix for Python 3.12 * Getting rid of Python 3.7, since it's not supported anymore. * Precommit hooks' autoupdate. * Disabling `aiohttp` for testing Python 3.12.
Support for `urllib2>=2`
What's Changed
- Replace
aiohttp
withhttpx
for a few tests by @mindflayer in #197 - Fix for
urllib2>=2
by @mindflayer in #201
Full Changelog: 3.11.0...3.11.1
Python 3.11 support
- Migrating the HTTP[S] mock from relying on
http-parser
tohttptools
. - Never discovered the root cause for the failing tests with
aiohttp
/Python 3.11 (first time ever I added@pytest.mark.xfail
to a few tests). Same test works withhttpx
, so I suspect it's related to a client issue. I'll probably migrate tohttpx
as the reference client for testingasync/await
code.
Minor improvements
What's Changed
- Small improvement for
socketpair
by @mindflayer in #189 - Fix for an unconvential usage of Mocket by @mindflayer in #192
- Improve efficiency on CI by @amotl in #194
New Contributors
Full Changelog: 3.10.8...3.10.9
Mocket now supports calls from an asyncio event loop
What's Changed
- Improving tests for
httpx
by @mindflayer in #186 - Support for calls made by
fastapi
by @mindflayer in #188
Full Changelog: 3.10.7...3.10.8
Support for `httpx` client
What's Changed
- Change methods not using its bound instance to staticmethods by @deepsource-autofix in #180
- Adding support for
httpx
by @mindflayer in #183
Thanks to @gregbrowndev for openinig #182.
Full Changelog: 3.10.6...3.10.7