MCPcopy
hub / github.com/scrapinghub/splash / test_render_error

Method test_render_error

splash/tests/test_render.py:159–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157
158 @unittest.skipIf(NON_EXISTING_RESOLVABLE, "non existing hosts are resolvable")
159 def test_render_error(self):
160 r = self.request({"url": "http://non-existent-host/"})
161 self.assertStatusCode(r, 502)
162
163 def test_timeout(self):
164 r = self.request({"url": self.mockurl("delay?n=10"), "timeout": "0.5"})

Callers

nothing calls this directly

Calls 2

assertStatusCodeMethod · 0.80
requestMethod · 0.45

Tested by

no test coverage detected