mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-19 12:24:20 -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)
|
verify=False)
|
||||||
except requests.exceptions.ProxyError as e:
|
except requests.exceptions.ProxyError as e:
|
||||||
raise brozzler.ProxyError(
|
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):
|
def _needs_browsing(self, page, ydl_fetches):
|
||||||
if ydl_fetches:
|
if ydl_fetches:
|
||||||
|
|
|
@ -233,7 +233,7 @@ def test_proxy_down():
|
||||||
|
|
||||||
# raw fetch
|
# raw fetch
|
||||||
with pytest.raises(brozzler.ProxyError):
|
with pytest.raises(brozzler.ProxyError):
|
||||||
worker._fetch_url(site, page)
|
worker._fetch_url(site, page.url)
|
||||||
|
|
||||||
# WARCPROX_WRITE_RECORD
|
# WARCPROX_WRITE_RECORD
|
||||||
with pytest.raises(brozzler.ProxyError):
|
with pytest.raises(brozzler.ProxyError):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue