Closed obarbier closed 1 year ago
hello @obarbier
first of all your example is not a minimal reproducible. Try to copy and paste, then run. It will not
second, Retry, does not work by default with POST
:param iterable allowed_methods:
Set of uppercased HTTP method verbs that we should retry on.
By default, we only retry on methods which are considered to be
idempotent (multiple requests with the same parameters end with the
same state). See :attr:`Retry.DEFAULT_ALLOWED_METHODS`.
Set to a ``False`` value to retry on any verb.
.. warning::
Previously this parameter was named ``method_whitelist``, that
usage is deprecated in v1.26.0 and will be removed in v2.0.
DEFAULT_ALLOWED_METHODS = frozenset(
["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE"]
)
@beliaev-maksim thank you that was a great insight
Describe the bug
i have the following code which is causing test fail
However the same test pass when using get request
Additional context
No response
Version of
responses
0.20.0
Steps to Reproduce
Expected Result
the test should pass
Actual Result
Failure Traceback (most recent call last): File "", line 218, in wrapper
return func(*args, **kwargs)
File "", line 118, in test_basic
assert rsp2.call_count == 1
AssertionError