Skip to content

v2.0.0

Compare
Choose a tag to compare
@devanshshukla99 devanshshukla99 released this 05 Jun 10:42
· 15 commits to main since this release
ee9893c

Added/Improved Documentation

  • Added documentation and examples for :func:~pytest_response.Response.activate. (#16 <https://github.com/devanshshukla99/pytest-remote-response/pull/16>__)

Backwards Incompatible Changes

  • Renamed urllib_full to _urllib and urllib3_full to _urllib3, to indicate their threading instability. (#16 <https://github.com/devanshshukla99/pytest-remote-response/pull/16>__)

  • Moving away from commandline arguments --remote-db / --remote-database in favour of ini-config option remote_response_database set through pytest with default value database.db. (#30 <https://github.com/devanshshukla99/pytest-remote-response/pull/30>__)

Deprecations and Removals

  • Ability to activate interceptors via command-line argument --remote={INTERCEPTOR} has been removed in favour of activating via :func:~pytest_response.Response.activate decorator. (#16 <https://github.com/devanshshukla99/pytest-remote-response/pull/16>__)

Features

  • pytest-remote-response now has a decorator :func:~pytest_response.Response.activate to apply interceptors on individual functions. It supports string, regex pattern or list of interceptors as argument. (#16 <https://github.com/devanshshukla99/pytest-remote-response/pull/16>__)

Bug Fixes

  • Fixed the documentation examples. (#26 <https://github.com/devanshshukla99/pytest-remote-response/pull/26>__)

Trivial/Internal Changes

  • Moving from :mod:tinydb to :mod:sqlite3 for better threading support and reliability; no changes in public API. (#28 <https://github.com/devanshshukla99/pytest-remote-response/pull/28>__)

What's Changed

Full Changelog: v1.0.0...v2.0.0