(test_cli)
| 131 | |
| 132 | |
| 133 | async def test_get_proxies_https_false(test_cli): |
| 134 | ips = populate_proxy_ips_in_db() |
| 135 | |
| 136 | resp = await test_cli.get('/api/v1/proxies?https=false') |
| 137 | assert resp.status_code == 200 |
| 138 | |
| 139 | resp_json = resp.json() |
| 140 | |
| 141 | proxies = resp_json['proxies'] |
| 142 | assert len(proxies) > 0 |
| 143 | |
| 144 | for p in proxies: |
| 145 | assert p['is_https'] == False |
| 146 | |
| 147 | delete_test_ips(ips) |
| 148 | |
| 149 | |
| 150 | async def test_get_proxies_filtering_countries(test_cli): |
nothing calls this directly
no test coverage detected