mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
Merge branch 'service-worker' into qa
* service-worker: fix tests
This commit is contained in:
commit
983ed7bc60
@ -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