mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-05-16 13:32:46 -04:00
fix tests
This commit is contained in:
parent
f63947cfe9
commit
db62402be8
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue