Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump responses from 0.13.4 to 0.21.0 #2830

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2022

Bumps responses from 0.13.4 to 0.21.0.

Release notes

Sourced from responses's releases.

0.21.0

  • Add threading.Lock() to allow responses working with threading module.
  • Add urllib3 Retry mechanism. See #135
  • Removed internal _cookies_from_headers function
  • Now add, upsert, replace methods return registered response. remove method returns list of removed responses.
  • Added null value support in urlencoded_params_matcher via allow_blank keyword argument
  • Added strict version of decorator. Now you can apply @responses.activate(assert_all_requests_are_fired=True) to your function to validate that all requests were executed in the wrapped function. See #183

0.20.0

  • Deprecate responses.assert_all_requests_are_fired, responses.passthru_prefixes, responses.target since they are not actual properties of the class instance. Use responses.mock.assert_all_requests_are_fired, responses.mock.passthru_prefixes, responses.mock.target instead.
  • Fixed the issue when reset() method was called in not stopped mock. See #511

0.19.0

  • Added a registry that provides more strict ordering based on the invocation index. See responses.registries.OrderedRegistry.
  • Added shortcuts for each request method: delete, get, head, options, patch, post, put. For example, to add response for POST request you can use responses.post() instead of responses.add(responses.POST).
  • Prevent responses.activate decorator to leak, if wrapped function called from within another wrapped function. Also, allow calling of above mentioned chain. See #481 for more details.
  • Expose get_registry() method of RequestsMock object. Replaces internal _get_registry().
  • query_param_matcher can now accept dictionaries with int and float values.
  • Add support for the loose version of query_param_matcher via named argument strict_match.
  • Added support for async/await functions.
  • response_callback is no longer executed on exceptions raised by failed Responses
  • Change logic of _get_url_and_path to comply with RFC 3986. Now URL match occurs by matching schema, authority and path, where path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI.
  • An error is now raised when both content_type and headers[content-type] are provided as parameters.
  • When a request isn't matched the passthru prefixes are now included in error messages.

0.18.0

  • Dropped support of Python 2.7, 3.5, 3.6
  • Fixed issue with type annotation for responses.activate decorator. See #468
  • Removed internal _is_string and _ensure_str functions
  • Removed internal _quote from test_responses.py
  • Removed internal _matches attribute of RequestsMock object.
  • Generated decorator wrapper now uses stdlib features instead of strings and exec
  • Fix issue when Deprecation Warning was raised with default arguments in responses.add_callback due to match_querystring. See #464

0.17.0

  • This release is the last to support Python 2.7.
  • Fixed issue when response.iter_content when chunk_size=None entered infinite loop
  • Fixed issue when passthru_prefixes persisted across tests.

... (truncated)

Changelog

Sourced from responses's changelog.

0.21.0

  • Add threading.Lock() to allow responses working with threading module.
  • Add urllib3 Retry mechanism. See #135
  • Removed internal _cookies_from_headers function
  • Now add, upsert, replace methods return registered response. remove method returns list of removed responses.
  • Added null value support in urlencoded_params_matcher via allow_blank keyword argument
  • Added strict version of decorator. Now you can apply @responses.activate(assert_all_requests_are_fired=True) to your function to validate that all requests were executed in the wrapped function. See #183

0.20.0

  • Deprecate responses.assert_all_requests_are_fired, responses.passthru_prefixes, responses.target since they are not actual properties of the class instance. Use responses.mock.assert_all_requests_are_fired, responses.mock.passthru_prefixes, responses.mock.target instead.
  • Fixed the issue when reset() method was called in not stopped mock. See #511

0.19.0

  • Added a registry that provides more strict ordering based on the invocation index. See responses.registries.OrderedRegistry.
  • Added shortcuts for each request method: delete, get, head, options, patch, post, put. For example, to add response for POST request you can use responses.post() instead of responses.add(responses.POST).
  • Prevent responses.activate decorator to leak, if wrapped function called from within another wrapped function. Also, allow calling of above mentioned chain. See #481 for more details.
  • Expose get_registry() method of RequestsMock object. Replaces internal _get_registry().
  • query_param_matcher can now accept dictionaries with int and float values.
  • Add support for the loose version of query_param_matcher via named argument strict_match.
  • Added support for async/await functions.
  • response_callback is no longer executed on exceptions raised by failed Responses
  • Change logic of _get_url_and_path to comply with RFC 3986. Now URL match occurs by matching schema, authority and path, where path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI.
  • An error is now raised when both content_type and headers[content-type] are provided as parameters.
  • When a request isn't matched the passthru prefixes are now included in error messages.

0.18.0

  • Dropped support of Python 2.7, 3.5, 3.6
  • Fixed issue with type annotation for responses.activate decorator. See #468
  • Removed internal _is_string and _ensure_str functions

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner May 27, 2022 15:40
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 27, 2022
@dependabot dependabot bot force-pushed the dependabot/pip/responses-0.21.0 branch 2 times, most recently from 5db90f1 to 231a28d Compare June 3, 2022 22:03
@dependabot dependabot bot force-pushed the dependabot/pip/responses-0.21.0 branch from 231a28d to 93cb535 Compare June 10, 2022 19:25
Bumps [responses](https://github.com/getsentry/responses) from 0.13.4 to 0.21.0.
- [Release notes](https://github.com/getsentry/responses/releases)
- [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES)
- [Commits](getsentry/responses@0.13.4...0.21.0)

---
updated-dependencies:
- dependency-name: responses
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/responses-0.21.0 branch from 93cb535 to 2206031 Compare June 10, 2022 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant