mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-19 07:15:52 -04:00
fix tests
This commit is contained in:
parent
f63947cfe9
commit
db62402be8
@ -322,7 +322,7 @@ class BrozzlerWorker:
|
||||
verify=False)
|
||||
except requests.exceptions.ProxyError as e:
|
||||
raise brozzler.ProxyError(
|
||||
'proxy error fetching %s' % page.url) from e
|
||||
'proxy error fetching %s' % url) from e
|
||||
|
||||
def _needs_browsing(self, page, ydl_fetches):
|
||||
if ydl_fetches:
|
||||
|
@ -233,7 +233,7 @@ def test_proxy_down():
|
||||
|
||||
# raw fetch
|
||||
with pytest.raises(brozzler.ProxyError):
|
||||
worker._fetch_url(site, page)
|
||||
worker._fetch_url(site, page.url)
|
||||
|
||||
# WARCPROX_WRITE_RECORD
|
||||
with pytest.raises(brozzler.ProxyError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user