Release Notes¶
1.1.0¶
Feature: Display mismatched URL within
UnmockedError
whenever possible. #388Feature: Display mismatched URL via logging. #419
Add new properties to
httpretty.core.HTTPrettyRequest
(protocol, host, url, path, method
).
Example usage:
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() . #402
Bugfix: Prevent exceptions from re-applying monkey patches. #406
1.0.0¶
Drop Python 2 support.
Fix usage with redis and improve overall real-socket passthrough. #271.
Fix TypeError: wrap_socket() missing 1 required positional argument: ‘sock’ (#393)
Merge pull request #364
Merge pull request #371
Merge pull request #379
Merge pull request #386
Merge pull request #302
Merge pull request #373
Merge pull request #383
Merge pull request #385
Merge pull request #389
Merge pull request #391
Fix simple typo: neighter -> neither.
Updated documentation for register_uri concerning using ports.
Clarify relation between
enabled
andhttprettized
in API docs.Align signature with builtin socket.
0.9.4¶
Improvements:
Official Python 3.6 support
Normalized coding style to comform with PEP8 (partially)
Add more API reference coverage in docstrings of members such as
httpretty.core.Entry
Continuous Integration building python 2.7 and 3.6
0.8.4¶
Improvements:
Refactored
core.py
and increased its unit test coverage to 80%. HTTPretty is slightly more robust now.
Bug fixes:
POST requests being called twice #100
0.6.5¶
Applied pull requests:
Add a way to match the querystrings: #98 by ametaireau
Use common string case for URIInfo hostname comparison: #95 by mikewaters
Adding parsed_body parameter to simplify checks: #88 by toumorokoshi
0.6.2¶
0.6.1¶
New API, no more camel case and everything is available through a simple import:
import httpretty
@httpretty.activate
def test_function():
# httpretty.register_uri(...)
# make request...
pass
Re-organized module into submodules
0.5.14¶
Delegate calls to other methods on socket
Normalized header strings
Callbacks are more intelligent now
Normalize urls matching for url quoting
0.5.12¶
HTTPretty doesn’t hang when using other application protocols under a @httprettified decorated test.
0.5.11¶
Ability to know whether HTTPretty is or not enabled through
httpretty.is_enabled()
0.5.10¶
Support to multiple methods per registered URL. Thanks @hughsaunders
0.5.9¶
Fixed python 3 support. Thanks @spulec
0.5.8¶
Support to register regular expressions to match urls
Body callback suppport
Python 3 support