-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update dependency responses to v0.25.3 #16
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/responses-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
509f2f3
to
e783a8b
Compare
e783a8b
to
8918776
Compare
8918776
to
8201e67
Compare
8201e67
to
1e6b651
Compare
1e6b651
to
ab13616
Compare
ab13616
to
6ade51a
Compare
6ade51a
to
5848968
Compare
5848968
to
934f380
Compare
934f380
to
4cc6d7f
Compare
4cc6d7f
to
93625cc
Compare
93625cc
to
5346ab5
Compare
5346ab5
to
c13756a
Compare
c13756a
to
c59d9d0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.12.1
->==0.25.3
Release Notes
getsentry/responses (responses)
v0.25.3
Compare Source
recorder
not saving and loading response headers with yaml files. See #715v0.25.2
Compare Source
matchers.body_matcher
for matching string request bodies. See #717v0.25.0
Compare Source
matchers.header_matcher
not failing when a matched header is missing from the request. See #702v0.24.1
Compare Source
Call
attributes.v0.24.0
Compare Source
BaseResponse.calls
to access calls data of a separate mocked request. See #664real_adapter_send
parameter toRequestsMock
that will allow users to setthrough which function they would like to send real requests
json_params_matcher
.Content-Type
headers issue when the header was duplicated. See #644tests_requires
v0.23.3
Compare Source
v0.23.2
Compare Source
unbound_on_send
method inRequestsMock
class. This method returns new functionthat is called by
RequestsMock
instead of originalsend
method defined by any adapter.v0.23.1
Compare Source
tomli
import. See #630v0.23.0
Compare Source
CallList
. See #593request
object is attached to any custom exception provided asResponse
body
argument. See #588assert_all_requests_are_fired
and a request was not fired.responses.RequestsMock._parse_response_file
andresponses._recorder.Recorder.dump_to_file
methods that allow users to override default parser to eg toml, jsonv0.22.0
Compare Source
requests
dependency to the version of 2.22.0 or higher. See #584.@_recorder.record(file_path="out.toml")
decorator.via
responses._add_from_file(file_path="out.toml")
method.mock
's patcher object. See #556CallList
passthrough
argument toBaseResponse
object. See #557registries
leak. See #563OriginalResponseShim
is removed. See #585loose
version ofjson_params_matcher
via named argumentstrict_match
. See #551json_params_matcher
. See #559delete
,get
,head
,options
,patch
,post
,put
shortcuts are now implemented usingfunctools.partialmethod
.MaxRetryError
exception. Replace exception byRetryError
according torequests
implementation. See #572.Retry
is exhausted. See #580.v0.21.0
Compare Source
threading.Lock()
to allowresponses
working withthreading
module.urllib3
Retry
mechanism. See #135_cookies_from_headers
functionadd
,upsert
,replace
methods return registered response.remove
method returns list of removed responses.urlencoded_params_matcher
viaallow_blank
keyword argument@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
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.reset()
method was called in not stopped mock. See #511v0.19.0
Compare Source
See
responses.registries.OrderedRegistry
.For example, to add response for POST request you can use
responses.post()
insteadof
responses.add(responses.POST)
.responses.activate
decorator to leak, if wrapped function called from within anotherwrapped function. Also, allow calling of above mentioned chain. See #481 for more details.
get_registry()
method ofRequestsMock
object. Replaces internal_get_registry()
.query_param_matcher
can now accept dictionaries withint
andfloat
values.loose
version ofquery_param_matcher
via named argumentstrict_match
.async/await
functions.response_callback
is no longer executed on exceptions raised by failedResponse
s_get_url_and_path
to comply with RFC 3986. Now URL match occurs by matchingschema, authority and path, where path is terminated by the first question mark ("?") or
number sign ("#") character, or by the end of the URI.
content_type
andheaders[content-type]
are provided as parameters.v0.18.0
Compare Source
responses.activate
decorator. See #468_is_string
and_ensure_str
functions_quote
fromtest_responses.py
_matches
attribute ofRequestsMock
object.in
responses.add_callback
due tomatch_querystring
. See #464v0.17.0
Compare Source
response.iter_content
whenchunk_size=None
entered infinite looppassthru_prefixes
persisted across tests.Now
add_passthru
is valid only within a context manager or for a single function andcleared on exit
match_querystring
argument inResponse
andCallbackResponse
.Use
responses.matchers.query_param_matcher
orresponses.matchers.query_string_matcher
responses.matchers.multipart_matcher
responses.registries
. Now user can create custom registries tomanipulate the order of responses in the match algorithm
responses.activate(registry=CustomRegistry)
same URL. See Issue #212
v0.16.0
Compare Source
stream
parameter deprecation, requests.session() and cookie handling.urllib.parse
.match
parameter toadd_callback
methodresponses.matchers.fragment_identifier_matcher
. This matcher allows youto match request URL fragment identifier.
python-future
is also installed.v0.15.0
Compare Source
responses.PassthroughResponse
andreponses.BaseResponse.passthrough
. These features make building passthroughresponses more compatible with dynamcially generated response objects.
_is_redirect()
function from responses internals.responses.matchers.request_kwargs_matcher
. This matcher allows youto match additional request arguments like
stream
.responses.matchers.multipart_matcher
. This matcher allows youto match request body and headers for
multipart/form-data
dataresponses.matchers.query_string_matcher
. This matcher allows youto match request query string, similar to
responses.matchers.query_param_matcher
.responses.matchers.header_matcher()
. This matcher allows you to matchrequest headers. By default only headers supplied to
header_matcher()
are checked.You can make header matching exhaustive by passing
strict_match=True
toheader_matcher()
.between Python2 and Python3 versions
stream
argument inResponse
andCallbackResponse
v0.14.0
Compare Source
responses.matchers
.responses.json_params_matcher
toresponses.matchers.json_params_matcher
responses.urlencoded_params_matcher
toresponses.matchers.urlencoded_params_matcher
responses.matchers.query_param_matcher
. This matcher allows youto match query strings with a dictionary.
auto_calculate_content_length
option toresponses.add()
. Whenenabled, this option will generate a
Content-Length
headerbased on the number of bytes in the response body.
v0.13.4
Compare Source
v0.13.3
Compare Source
v0.13.2
Compare Source
add_callback
v0.13.1
Compare Source
v0.13.0
Compare Source
responses.upsert()
was added. This method willadd()
a response if onehas not already been registered for a URL, or
replace()
an existingresponse.
responses.registered()
was added. The method allows you to get a list ofthe currently registered responses. This formalizes the previously private
responses.mock._matches
method.__repr__
has been added toResponse
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.