Skip to content

Commit

Permalink
Fix build issues based on tests with the requirement of 2 miliseconds g…
Browse files Browse the repository at this point in the history
…abrielfalcao#459

Signed-off-by: Sarah Julia Kriesch <[email protected]>
  • Loading branch information
skriesch committed Oct 27, 2022
1 parent f9f0127 commit 2098d2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions tests/functional/test_httplib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def test_httpretty_should_allow_adding_and_overwritting_httplib2():


@httprettified
@within(two=miliseconds)
def test_httpretty_should_allow_forcing_headers_httplib2(now):
def test_httpretty_should_allow_forcing_headers_httplib2():
"HTTPretty should allow forcing headers with httplib2"

HTTPretty.register_uri(HTTPretty.GET, "http://github.com/foo",
Expand Down Expand Up @@ -165,8 +164,7 @@ def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2():


@httprettified
@within(two=miliseconds)
def test_rotating_responses_with_httplib2(now):
def test_rotating_responses_with_httplib2():
"HTTPretty should support rotating responses with httplib2"

HTTPretty.register_uri(
Expand Down Expand Up @@ -248,8 +246,7 @@ def test_can_inspect_last_request_with_ssl(now):


@httprettified
@within(two=miliseconds)
def test_httpretty_ignores_querystrings_from_registered_uri(now):
def test_httpretty_ignores_querystrings_from_registered_uri():
"Registering URIs with query string cause them to be ignored"

HTTPretty.register_uri(HTTPretty.GET, "http://yipit.com/?id=123",
Expand Down
7 changes: 2 additions & 5 deletions tests/functional/test_urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def test_httpretty_should_allow_adding_and_overwritting_urllib2():


@httprettified
@within(two=miliseconds)
def test_httpretty_should_allow_forcing_headers_urllib2():
"HTTPretty should allow forcing headers with urllib2"

Expand Down Expand Up @@ -177,8 +176,7 @@ def test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2():


@httprettified
@within(two=miliseconds)
def test_httpretty_should_support_a_list_of_successive_responses_urllib2(now):
def test_httpretty_should_support_a_list_of_successive_responses_urllib2():
("HTTPretty should support adding a list of successive "
"responses with urllib2")

Expand Down Expand Up @@ -285,8 +283,7 @@ def test_httpretty_ignores_querystrings_from_registered_uri():


@httprettified
@within(two=miliseconds)
def test_callback_response(now):
def test_callback_response():
("HTTPretty should call a callback function to be set as the body with"
" urllib2")

Expand Down

0 comments on commit 2098d2c

Please sign in to comment.