MCPcopy Create free account
hub / github.com/apify/crawlee-python / proxy_info

Function proxy_info

tests/unit/conftest.py:106–117  ·  view source on GitHub ↗
(unused_tcp_port: int)

Source from the content-addressed store, hash-verified

104
105@pytest.fixture
106async def proxy_info(unused_tcp_port: int) -> ProxyInfo:
107 username = 'user'
108 password = 'pass'
109
110 return ProxyInfo(
111 url=f'http://{username}:{password}@127.0.0.1:{unused_tcp_port}',
112 scheme='http',
113 hostname='127.0.0.1',
114 port=unused_tcp_port,
115 username=username,
116 password=password,
117 )
118
119
120@pytest.fixture

Callers

nothing calls this directly

Calls 1

ProxyInfoClass · 0.90

Tested by

no test coverage detected