MCPcopy
hub / github.com/MikeChongCan/scylla / test_get_proxies_https_true

Function test_get_proxies_https_true

tests/web/server_test.py:116–130  ·  view source on GitHub ↗
(test_cli)

Source from the content-addressed store, hash-verified

114
115
116async def test_get_proxies_https_true(test_cli):
117 ips = populate_proxy_ips_in_db()
118
119 resp = await test_cli.get('/api/v1/proxies?https=true')
120 assert resp.status_code == 200
121
122 resp_json = resp.json()
123
124 proxies = resp_json['proxies']
125 assert len(proxies) > 0
126
127 for p in proxies:
128 assert p['is_https'] == True
129
130 delete_test_ips(ips)
131
132
133async def test_get_proxies_https_false(test_cli):

Callers

nothing calls this directly

Calls 3

populate_proxy_ips_in_dbFunction · 0.85
delete_test_ipsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected