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

fix(deps): update dependency responses to v0.23.1 #537

Merged
merged 1 commit into from Mar 25, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 24, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
responses (changelog) 0.18.0 -> 0.23.1 age adoption passing confidence

Release Notes

getsentry/responses

v0.23.1

Compare Source

v0.23.0

Compare Source

  • Add Python 3.11 support
  • Fix type annotations of CallList. See #​593
  • request object is attached to any custom exception provided as Response body argument. See #​588
  • Fixed mocked responses leaking between tests when assert_all_requests_are_fired and a request was not fired.
  • [BETA] Default recorder format was changed to YAML. Added responses.RequestsMock._parse_response_file and
    responses._recorder.Recorder.dump_to_file methods that allow users to override default parser to eg toml, json

v0.22.0

Compare Source

  • Update requests dependency to the version of 2.22.0 or higher. See #​584.
  • [BETA] Added possibility to record responses to TOML files via @_recorder.record(file_path="out.toml") decorator.
  • [BETA] Added possibility to replay responses (populate registry) from TOML files
    via responses._add_from_file(file_path="out.toml") method.
  • Fix type for the mock's patcher object. See #​556
  • Fix type annotation for CallList
  • Add passthrough argument to BaseResponse object. See #​557
  • Fix registries leak. See #​563
  • OriginalResponseShim is removed. See #​585
  • Add support for the loose version of json_params_matcher via named argument strict_match. See #​551
  • Add lists support as JSON objects in json_params_matcher. See #​559
  • Added project links to pypi listing.
  • delete, get, head, options, patch, post, put shortcuts are now implemented using functools.partialmethod.
  • Fix MaxRetryError exception. Replace exception by RetryError according to requests implementation. See #​572.
  • Adjust error message when Retry is exhausted. See #​580.

v0.21.0

Compare Source

  • 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

v0.20.0

Compare Source

  • 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

v0.19.0

Compare Source

  • 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.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@coveralls
Copy link

coveralls commented Mar 24, 2023

Pull Request Test Coverage Report for Build 4516237593

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.599%

Totals Coverage Status
Change from base Build 4516220335: 0.0%
Covered Lines: 2016
Relevant Lines: 2069

💛 - Coveralls

@renovate renovate bot force-pushed the renovate/responses-0.x-lockfile branch 5 times, most recently from 21284e7 to 1b323b7 Compare March 24, 2023 22:38
@renovate renovate bot force-pushed the renovate/responses-0.x-lockfile branch from 1b323b7 to 8423e9e Compare March 24, 2023 23:41
@andreoliwa andreoliwa merged commit 796034c into develop Mar 25, 2023
29 checks passed
@andreoliwa andreoliwa deleted the renovate/responses-0.x-lockfile branch March 25, 2023 00:14
github-actions bot pushed a commit that referenced this pull request Mar 27, 2023
# [0.33.0](v0.32.0...v0.33.0) (2023-03-27)

### Bug Fixes

* actually show chosen styles in log output ([#477](#477)) ([9a685ac](9a685ac))
* **deps:** update dependency attrs to v22 ([d3ad0e0](d3ad0e0))
* **deps:** update dependency click to v8.1.3 ([bd54df5](bd54df5))
* **deps:** update dependency configupdater to v3.1.1 ([024fd16](024fd16))
* **deps:** update dependency dpath to v2.1.5 ([#557](#557)) ([6a4fddd](6a4fddd))
* **deps:** update dependency flake8 to v5 ([#559](#559)) ([1bc7b06](1bc7b06))
* **deps:** update dependency freezegun to v1.2.2 ([#543](#543)) ([9a67f5a](9a67f5a))
* **deps:** update dependency identify to v2.5.22 ([00dbdce](00dbdce))
* **deps:** update dependency importlib-resources to v5.12.0 ([68aae5c](68aae5c))
* **deps:** update dependency jmespath to v1 ([e51c957](e51c957))
* **deps:** update dependency marshmallow to v3.19.0 ([a314480](a314480))
* **deps:** update dependency marshmallow-polyfield to v5.11 ([#545](#545)) ([b05092b](b05092b))
* **deps:** update dependency more-itertools to v8.14.0 ([#531](#531)) ([139ef6b](139ef6b))
* **deps:** update dependency pytest to v7 ([a080454](a080454))
* **deps:** update dependency pytest-cov to v4 ([db278d4](db278d4))
* **deps:** update dependency pytest-datadir to v1.4.1 ([c6d5cb4](c6d5cb4))
* **deps:** update dependency pytest-socket to v0.6.0 ([#534](#534)) ([2bdf0d6](2bdf0d6))
* **deps:** update dependency pytest-testmon to v1.4.5 ([392fce5](392fce5))
* **deps:** update dependency pytest-testmon to v2.0.1 ([81b300d](81b300d))
* **deps:** update dependency pytest-testmon to v2.0.2 ([1e58ff2](1e58ff2))
* **deps:** update dependency python-slugify to v8 ([77649bd](77649bd))
* **deps:** update dependency requests to v2.28.2 ([#536](#536)) ([0af1b14](0af1b14))
* **deps:** update dependency requests-cache to v0.9.8 ([#518](#518)) ([2135344](2135344))
* **deps:** update dependency requests-cache to v1.0.1 ([2104255](2104255))
* **deps:** update dependency responses to v0.23.1 ([#537](#537)) ([796034c](796034c))
* **deps:** update dependency sphinx to v4.5.0 ([#538](#538)) ([aee2267](aee2267))
* **deps:** update dependency sphinx to v5 ([#560](#560)) ([b7fcb67](b7fcb67))
* **deps:** update dependency sphinx_rtd_theme to v1.2.0 ([f729818](f729818))
* **deps:** update dependency sphobjinv to v2.3.1 ([33bea38](33bea38))
* **deps:** update dependency strenum to v0.4.10 ([4aed308](4aed308))
* **deps:** update dependency testfixtures to v6.18.5 ([311a5ca](311a5ca))
* **deps:** update dependency tomlkit to v0.11.6 ([a28e6d7](a28e6d7))
* document.add does not work on Linux ([#487](#487)) ([07048bb](07048bb))
* further improve file path handling ([#479](#479)) ([6cff555](6cff555))
* pass in token to fetch GH default branch ([#475](#475)) ([46ea598](46ea598))

### Features

* add MegaLinter plugin ([#476](#476)) ([212a36a](212a36a))
* add Python 3.11 ([2a7cbea](2a7cbea))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants