mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
Fix failing tests
This commit is contained in:
committed by
Samuel Fekete
parent
fc95e34bd4
commit
365a98bf66
@@ -37,6 +37,6 @@ def proxy_server(httpbin):
|
||||
|
||||
def test_use_proxy(tmpdir, httpbin, proxy_server):
|
||||
'''Ensure that it works with a proxy.'''
|
||||
with vcr.use_cassette(str(tmpdir.join('proxy.yaml'))) as cass:
|
||||
with vcr.use_cassette(str(tmpdir.join('proxy.yaml'))):
|
||||
requests.get(httpbin.url, proxies={'http': proxy_server})
|
||||
requests.get(httpbin.url, proxies={'http': proxy_server})
|
||||
|
||||
@@ -136,7 +136,7 @@ class VCRConnection(object):
|
||||
|
||||
def _uri(self, url):
|
||||
"""Returns request absolute URI"""
|
||||
if not url.startswith('/'):
|
||||
if url and not url.startswith('/'):
|
||||
# Then this must be a proxy request.
|
||||
return url
|
||||
uri = "{0}://{1}{2}{3}".format(
|
||||
|
||||
Reference in New Issue
Block a user