Releases: mindflayer/python-mocket
Releases · mindflayer/python-mocket
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
aiohttpwithhttpxfor a few tests by @mindflayer in #197 - Fix for
urllib2>=2by @mindflayer in #201
Full Changelog: 3.11.0...3.11.1
Python 3.11 support
- Migrating the HTTP[S] mock from relying on
http-parsertohttptools. - Never discovered the root cause for the failing tests with
aiohttp/Python 3.11 (first time ever I added@pytest.mark.xfailto a few tests). Same test works withhttpx, so I suspect it's related to a client issue. I'll probably migrate tohttpxas the reference client for testingasync/awaitcode.
Minor improvements
What's Changed
- Small improvement for
socketpairby @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
httpxby @mindflayer in #186 - Support for calls made by
fastapiby @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
httpxby @mindflayer in #183
Thanks to @gregbrowndev for openinig #182.
Full Changelog: 3.10.6...3.10.7
Removing an external dependency
What's Changed
- No need for the external
mockdependency by @mindflayer in #179
Full Changelog: 3.10.5...3.10.6
Bugfix release
What's Changed
- Small refactor by @mindflayer in #172
- Remove assert statement from non-test files by @deepsource-autofix in #173
- Remove blank lines after docstring by @deepsource-autofix in #174
- MocketEntry.request_class str vs bytes (fix for #175 ) by @michael-lazar in #177
Full Changelog: 3.10.4...3.10.5