(test_cli)
| 208 | |
| 209 | |
| 210 | async def test_get_stats(test_cli): |
| 211 | ip_str = create_test_ip() |
| 212 | |
| 213 | resp = await test_cli.get('/api/v1/stats') |
| 214 | assert resp.status_code == 200 |
| 215 | |
| 216 | resp_json = resp.json() |
| 217 | |
| 218 | assert resp_json['median'] |
| 219 | assert resp_json['mean'] |
| 220 | assert resp_json['valid_count'] |
| 221 | assert resp_json['total_count'] |
| 222 | |
| 223 | delete_test_ip(ip_str) |
nothing calls this directly
no test coverage detected