diff options
| author | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-03-07 20:02:29 -0300 |
|---|---|---|
| committer | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-03-07 20:03:01 -0300 |
| commit | b707cbf5b3702290e52a1cd2595ffed6a4d0bbdf (patch) | |
| tree | 839b9c3c848c8b0ba87235e1fb1ae982860f2542 | |
| parent | ddbc9b6a8a1fbe9ab3a1ba598d9cc705209b8bee (diff) | |
| download | httpretty-b707cbf5b3702290e52a1cd2595ffed6a4d0bbdf.tar.gz | |
typo
| -rw-r--r-- | tests/functional/test_requests.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/test_requests.py b/tests/functional/test_requests.py index ce170ba..9f7a23b 100644 --- a/tests/functional/test_requests.py +++ b/tests/functional/test_requests.py @@ -518,8 +518,8 @@ def test_httpretty_should_respect_matcher_priority(): expect(response.text).to.equal('high priority') -@within(two=microseconds) -def test_callback_setting_content_length_on_head(now): +# @within(five=microseconds) +def test_callback_setting_content_length_on_head(*args): ("HTTPretty should call a callback function, use it's return tuple as status code, headers and body" " requests and respect the content-length header when responding to HEAD") @@ -543,7 +543,7 @@ def test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_t HTTPretty.register_uri( HTTPretty.GET, re.compile("https://api.yipit.com/v1/deal;brand=(?P<brand_name>\w+)"), - body=lambda method,uri,headers: [200,headers,uri] + body=lambda method,uri,headers: [200, headers, uri] ) response = requests.get('https://api.yipit.com/v1/deal;brand=gap?first_name=chuck&last_name=norris') @@ -552,6 +552,7 @@ def test_httpretty_should_allow_registering_regexes_and_give_a_proper_match_to_t expect(HTTPretty.last_request.method).to.equal('GET') expect(HTTPretty.last_request.path).to.equal('/v1/deal;brand=gap?first_name=chuck&last_name=norris') + @httprettified def test_httpretty_should_allow_registering_regexes(): "HTTPretty should allow registering regexes with requests" |
