Loading test/unit/util/test_get_url.py +0 −7 Original line number Diff line number Diff line Loading @@ -22,10 +22,3 @@ def test_get_url_forbidden(): assert "403 Client Error: Forbidden for url: https://toolshed.g2.bx.psu.edu/" in str(excinfo) def test_get_url_retry_after(): # This test is not ideal since it contacts an external resource # and doesn't acutally verify multiple attempts have been made. # responses doesn't mock the right place to fully simulate this. url = "https://httpbin.org/status/429" with pytest.raises(requests.exceptions.RetryError): url_get(url, max_retries=2, backoff_factor=0.01) Loading
test/unit/util/test_get_url.py +0 −7 Original line number Diff line number Diff line Loading @@ -22,10 +22,3 @@ def test_get_url_forbidden(): assert "403 Client Error: Forbidden for url: https://toolshed.g2.bx.psu.edu/" in str(excinfo) def test_get_url_retry_after(): # This test is not ideal since it contacts an external resource # and doesn't acutally verify multiple attempts have been made. # responses doesn't mock the right place to fully simulate this. url = "https://httpbin.org/status/429" with pytest.raises(requests.exceptions.RetryError): url_get(url, max_retries=2, backoff_factor=0.01)