MCPcopy Create free account
hub / github.com/apify/impit / test_proxy

Method test_proxy

impit-python/test/no_client_test.py:192–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 m(get_httpbin_url('/anything'))
191
192 def test_proxy(self) -> None:
193 stop_proxy = start_proxy_server(3002)
194
195 resp = impit.get('https://crawlee.dev/', proxy='http://127.0.0.1:3002')
196 assert resp.status_code == 200
197 assert 'Crawlee' in resp.text
198
199 stop_proxy()
200
201 def test_default_no_redirect(self) -> None:
202 target_url = 'https://crawlee.dev/'

Callers

nothing calls this directly

Calls 2

start_proxy_serverFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected