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

Function test_get_proxies_anonymous_false

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

Source from the content-addressed store, hash-verified

97
98
99async def test_get_proxies_anonymous_false(test_cli):
100 ips = populate_proxy_ips_in_db()
101
102 resp = await test_cli.get('/api/v1/proxies?anonymous=false')
103 assert resp.status_code == 200
104
105 resp_json = resp.json()
106
107 proxies = resp_json['proxies']
108 assert len(proxies) > 0
109
110 for p in proxies:
111 assert p['is_anonymous'] == False
112
113 delete_test_ips(ips)
114
115
116async def test_get_proxies_https_true(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