MCPcopy Index your code
hub / github.com/Python3WebSpider/ProxyPool / run_tester

Function run_tester

proxypool/processors/tester.py:149–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148
149def run_tester():
150 host = '96.113.165.182'
151 port = '3128'
152 tester = Tester()
153
154 async def _test():
155 async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session:
156 await tester.test(Proxy(host=host, port=port), session)
157
158 loop = asyncio.new_event_loop()
159 asyncio.set_event_loop(loop)
160 try:
161 loop.run_until_complete(_test())
162 finally:
163 loop.close()
164
165
166if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

TesterClass · 0.85
_testFunction · 0.85

Tested by

no test coverage detected