Fix README to properly show callback usage.

Using a callback as documented leads to a deep ValueError which is
confusing.
This commit is contained in:
Jamie Lennox
2013-06-21 13:56:40 +10:00
parent bf895eaa56
commit c54a376e47

View File

@@ -226,7 +226,7 @@ import httpretty
def test_response_callbacks():
def request_callback(method, uri, headers):
return "The {} response from {}".format(method, uri)
return (200, headers, "The {} response from {}".format(method, uri))
httpretty.register_uri(
httpretty.GET, "https://api.yahoo.com/test",