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

Method mockurl

splash/tests/test_render.py:70–71  ·  view source on GitHub ↗
(self, path, host='localhost')

Source from the content-addressed store, hash-verified

68 pytest.skip("Gzip support is not available in old Twisted")
69
70 def mockurl(self, path, host='localhost'):
71 return self.ts.mockserver.url(path, self.use_gzip, host=host)
72
73 def _get_handler(self):
74 handler = self.request_handler(self.ts)

Calls 1

urlMethod · 0.45

Tested by

no test coverage detected