(test_cli)
| 180 | |
| 181 | |
| 182 | async 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 | |
| 196 | async def test_get_proxies_page_invalid(test_cli): |
nothing calls this directly
no test coverage detected