(unused_tcp_port: int)
| 104 | |
| 105 | @pytest.fixture |
| 106 | async 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 |