Httpretty

Latest version: v1.1.4

Safety actively analyzes 623490 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

1.1.4

-------------

- Bugfix: `435 <https://github.com/gabrielfalcao/HTTPretty/issues/435>`_ Fallback to WARNING when logging.getLogger().level is None.

1.1.3

-------------

- Bugfix: `430 <https://github.com/gabrielfalcao/HTTPretty/issues/430>`_ Respect socket timeout.

1.1.2

-------------

- Bugfix: `426 <https://github.com/gabrielfalcao/HTTPretty/issues/426>`_ Segmentation fault when running against a large amount of tests with ``pytest --mypy``.

1.1.1

-------------

- Bugfix: `httpretty.disable()` injects pyopenssl into :py:mod:`urllib3` even if it originally wasn't `417 <https://github.com/gabrielfalcao/HTTPretty/issues/417>`_
- Bugfix: "Incompatibility with boto3 S3 put_object" `416 <https://github.com/gabrielfalcao/HTTPretty/issues/416>`_
- Bugfix: "Regular expression for URL -> TypeError: wrap_socket() missing 1 required" `413 <https://github.com/gabrielfalcao/HTTPretty/issues/413>`_
- Bugfix: "Making requests to non-stadard port throws TimeoutError "`387 <https://github.com/gabrielfalcao/HTTPretty/issues/387>`_

1.1.0

-------------

- Feature: Display mismatched URL within ``UnmockedError`` whenever possible. `388 <https://github.com/gabrielfalcao/HTTPretty/issues/388>`_
- Feature: Display mismatched URL via logging. `419 <https://github.com/gabrielfalcao/HTTPretty/pull/419>`_
- Add new properties to :py:class:`httpretty.core.HTTPrettyRequest` (``protocol, host, url, path, method``).

Example usage:

.. testcode::

import httpretty
import requests

httpretty.activate(verbose=True, allow_net_connect=False)
def test_mismatches():
requests.get('http://sql-server.local')
requests.get('https://redis.local')

1.0.5

-------------

- Bugfix: Support `socket.socketpair() <https://docs.python.org/3/library/socket.html#socket.socketpair>`_ . `402 <https://github.com/gabrielfalcao/HTTPretty/issues/402>`_
- Bugfix: Prevent exceptions from re-applying monkey patches. `406 <https://github.com/gabrielfalcao/HTTPretty/issues/406>`_

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.