Applied pull requests:
- continue on EAGAIN socket errors: #102 by kouk.
- Fix
fake_gethostbyname
for requests 2.0: #101 by mgood - Add a way to match the querystrings: #98 by ametaireau
- Use common string case for URIInfo hostname comparison: #95 by mikewaters
- Expose httpretty.reset() to public API: #91 by imankulov
- Don't duplicate http ports number: #89 by mardiros
- Adding parsed_body parameter to simplify checks: #88 by toumorokoshi
- Use the real socket if it's not HTTP: #87 by mardiros
- Fixing bug of lack of trailing slashes #73
- Applied pull requests #71 and #72 by @andresriancho
- Keyword arg coercion fix by @dupuy
- @papaeye fixed content-length calculation.
- 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
-
Delegate calls to other methods on socket
-
Normalized header strings
-
Callbacks are more intelligent now
-
Normalize urls matching for url quoting
- HTTPretty doesn't hang when using other application protocols under a @httprettified decorated test.
- Ability to know whether HTTPretty is or not enabled through
httpretty.is_enabled()
- Support to multiple methods per registered URL. Thanks @hughsaunders
- Fixed python 3 support. Thanks @spulec
- Support to register regular expressions to match urls
- Body callback suppport
- Python 3 support