Commit graph

27 commits

Author SHA1 Message Date
adam
df45232b74 py-responses: updated to 0.16.0
0.16.0
------
* Fixed regression with `stream` parameter deprecation, requests.session() and cookie handling.
* Replaced adhoc URL parsing with `urllib.parse`.
* Added ``match`` parameter to ``add_callback`` method
* Added `responses.matchers.fragment_identifier_matcher`. This matcher allows you
  to match request URL fragment identifier.
* Improved test coverage.
* Fixed failing test in python 2.7 when `python-future` is also installed.
2021-11-22 09:17:31 +00:00
adam
1ebcc2f104 py-responses: updated to 0.15.0
0.15.0
------

* Added `responses.PassthroughResponse` and
  `reponses.BaseResponse.passthrough`. These features make building passthrough
  responses more compatible with dynamcially generated response objects.
* Removed the unused ``_is_redirect()`` function from responses internals.
* Added `responses.matchers.request_kwargs_matcher`. This matcher allows you
  to match additional request arguments like `stream`.
* Added `responses.matchers.multipart_matcher`. This matcher allows you
  to match request body and headers for ``multipart/form-data`` data
* Added `responses.matchers.query_string_matcher`. This matcher allows you
  to match request query string, similar to `responses.matchers.query_param_matcher`.
* Added `responses.matchers.header_matcher()`. This matcher allows you to match
  request headers. By default only headers supplied to `header_matcher()` are checked.
  You can make header matching exhaustive by passing `strict_match=True` to `header_matcher()`.
* Changed all matchers output message in case of mismatch. Now message is aligned
  between Python2 and Python3 versions
* Deprecate ``stream`` argument in ``Response`` and ``CallbackResponse``
* Added Python 3.10 support
2021-11-02 10:17:06 +00:00
nia
ab845b2028 net: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Not committed (merge conflicts...):

net/radsecproxy/distinfo

The following distfiles could not be fetched (fetched conditionally?):

./net/citrix_ica/distinfo citrix_ica-10.6.115659/en.linuxx86.tar.gz
./net/djbdns/distinfo dnscache-1.05-multiple-ip.patch
./net/djbdns/distinfo djbdns-1.05-test28.diff.xz
./net/djbdns/distinfo djbdns-1.05-ignoreip2.patch
./net/djbdns/distinfo djbdns-1.05-multiip.diff
./net/djbdns/distinfo djbdns-cachestats.patch
2021-10-26 11:05:20 +00:00
nia
5c85662953 net: Remove SHA1 hashes for distfiles 2021-10-07 14:41:10 +00:00
adam
9c61427d1e py-responses: updated to 0.14.0
0.14.0
------
* Added `responses.matchers`.
* Moved `responses.json_params_matcher` to `responses.matchers.json_params_matcher`
* Moved `responses.urlencoded_params_matcher` to
  `responses.matchers.urlencoded_params_matcher`
* Added `responses.matchers.query_param_matcher`. This matcher allows you
  to match query strings with a dictionary.
* Added `auto_calculate_content_length` option to `responses.add()`. When
  enabled, this option will generate a `Content-Length` header
  based on the number of bytes in the response body.
2021-09-19 10:45:51 +00:00
adam
14d1ebfa2c py-responses: updated to 0.13.4
0.13.4
* Improve typing support
* Use URLs with normalized hostnames when comparing URLs.
2021-08-11 09:48:41 +00:00
adam
158bdac696 py-responses: updated to 0.13.3
0.13.3
* Switch from Travis to GHA for deployment.
2021-04-28 09:58:03 +00:00
adam
72397c5edc py-responses: updated to 0.13.2
0.13.2
* Fixed incorrect type stubs for `add_callback`
2021-04-01 06:15:50 +00:00
adam
b3ddec98b4 py-responses: updated to 0.13.1
0.13.1
* Fixed packages not containing type stubs.

0.13.0
* `responses.upsert()` was added. This method will `add()` a response if one
  has not already been registered for a URL, or `replace()` an existing
  response.
* `responses.registered()` was added. The method allows you to get a list of
  the currently registered responses. This formalizes the previously private
  `responses.mock._matches` method.
* A more useful `__repr__` has been added to `Response`.
* Error messages have been improved.
2021-03-18 07:29:31 +00:00
adam
22c99ef332 py-responses: updated to 0.12.1
0.12.1
* `responses.urlencoded_params_matcher` and `responses.json_params_matcher` now
  accept None to match empty requests.
* Fixed imports to work with new `urllib3` versions.
* `request.params` now allows parameters to have multiple values for the same key.
* Improved ConnectionError messages.
2020-11-27 19:30:31 +00:00
adam
3ca4ebde11 py-responses: updated to 0.12.0
0.12.0
- Remove support for Python 3.4.

0.11.0
- Added the `match` parameter to `add()`.
- Added `responses.urlencoded_params_matcher()` and `responses.json_params_matcher()`.
2020-10-06 05:43:30 +00:00
adam
35ddd407ce py-responses: updated to 0.10.16
0.10.16
- Add a requirements pin to urllib3. This helps prevent broken install states where
  cookie usage fails.
2020-08-11 06:36:08 +00:00
adam
611c39ce58 py-responses: updated to 0.10.15
0.10.15
- Added `assert_call_count` to improve ergonomics around ensuring a mock was called.
- Fix incorrect handling of paths with query strings.
- Add Python 3.9 support to CI matrix.
2020-06-17 06:47:21 +00:00
adam
085023cc3a pytest from versioned depends 2020-05-16 18:00:31 +00:00
adam
2e804d9a6f py-responses: updated to 0.10.14
Responses 0.10.14
Version bump to align tags with setup.py

Responses 0.10.13
Improved README examples.
Improved handling of unicode bodies. The inferred content-type for unicode bodies is now text/plain; charset=utf-8.
Streamlined querysting matching code.
2020-04-22 20:21:15 +00:00
adam
ae8ca92033 py-responses: updated to 0.10.12
0.10.12
- Fixed incorrect content-type in `add_callback()` when headers are provided as a list of tuples.
2020-03-03 05:59:30 +00:00
adam
af236f0ba7 py-responses: updated to 0.10.11
0.10.11
- Fixed invalid README formatted.
- Fixed string formatting in error message.

0.10.10
- Added Python 3.8 support
- Remove Python 3.4 from test suite matrix.
- The `response.request` object now has a `params` attribute that contains the query string parameters from the request that was captured.
- `add_passthru` now supports `re` pattern objects to match URLs.
- ConnectionErrors raised by responses now include more details on the request that was attempted and the mocks registered.
2020-02-25 09:06:23 +00:00
adam
7e49b5278c py-responses: updated to 0.10.9
0.10.9
- Fixed regression with `add_callback()` and content-type header.
- Fixed implicit dependency on urllib3>1.23.0
2019-12-30 17:51:49 +00:00
adam
7f87869eea py-responses: updated to 0.10.8
0.10.8
- Fixed cookie parsing and enabled multiple cookies to be set by using a list of
  tuple values.
2019-12-15 14:52:07 +00:00
adam
34ec5f31ef py-responses: updated to 0.10.7
Responses 0.10.7
Improved formatting of project description in pypi.
Unicode cookie values are now normalized to URL quoted encoding.
Module exports are statically defined improving code completion and IDE navigation.
Improved compatibility with pytest 5
2019-12-03 17:08:40 +00:00
adam
39290a772a py-responses: updated to 0.10.6
0.10.6
- Improved documentation.
- Improved installation requirements for py3
- ConnectionError's raised by responses now indicate which request
  path/method failed to match a mock.
- test_responses.py is no longer part of the installation targets.
2019-03-18 13:01:48 +00:00
adam
455c10b303 py-responses: updated to 0.10.5
Responses 0.10.5
Fix callback exception mocking.
Improve test coverage
Improve build configuration.
2018-12-18 10:03:05 +00:00
adam
da44d7d25d py-responses: updated to 0.10.4
0.10.4
- Fixed generated wrapper when using @responses.activate in Python 3.6+
  when decorated functions use parameter and/or return annotations.
2018-11-23 11:35:28 +00:00
adam
5a2f028acb py-responses: updated to 0.10.3
0.10.3:
- Fixed deprecation warnings in python 3.7 for inspect module usage.
2018-11-09 10:46:56 +00:00
adam
ab6055b502 py-responses: updated to 0.10.2
0.10.2
- Fixed build setup to use undeprecated pytest bin stub.
- Updated tox configuration.
- Added example of using responses with pytest.fixture
- Removed dependency on biscuits in py3. Instead http.cookies is being used.

0.10.1
- Packaging fix to distribute wheel

0.10.0
- Fix passing through extra settings
- Fix collections.abc warning on Python 3.7
- Use 'biscuits' library instead of 'cookies' on Python 3.4+
2018-11-04 22:26:04 +00:00
adam
48f0d61983 py-responses: updated to 0.9.0
0.9.0
- Support for Python 3.7
- Support streaming responses for BaseResponse
- Support custom patch targets for mock
- Fix unicode support for passthru urls
- Fix support for unicode in domain names and tlds
2018-04-11 19:56:28 +00:00
adam
ba426832c9 py-responses: added version 0.8.1
A utility library for mocking out the requests Python library.
2017-10-28 06:52:56 +00:00