MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / test_fetch_url_invalid

Method test_fetch_url_invalid

tests/TestNetwork.py:211–215  ·  view source on GitHub ↗

Unit test for fetch_url() with invalid URL

(self)

Source from the content-addressed store, hash-verified

209 self.fail('fetch_url() did not raise RetryError for HTTP 500 response')
210
211 def test_fetch_url_invalid(self):
212 """Unit test for fetch_url() with invalid URL"""
213 url = 'https://test.invalid'
214 with self.assertRaises(requests.exceptions.RequestException):
215 fetch_url(url)

Callers

nothing calls this directly

Calls 1

fetch_urlFunction · 0.90

Tested by

no test coverage detected