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

Function test_get_proxies_page

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

Source from the content-addressed store, hash-verified

180
181
182async def test_get_proxies_page(test_cli):
183 ips = populate_proxy_ips_in_db()
184
185 resp = await test_cli.get('/api/v1/proxies?page=2')
186 assert resp.status_code == 200
187
188 resp_json = resp.json()
189
190 proxies = resp_json['proxies']
191 assert len(proxies) > 0
192
193 delete_test_ips(ips)
194
195
196async def test_get_proxies_page_invalid(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