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

Function test_get_stats

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

Source from the content-addressed store, hash-verified

208
209
210async 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)

Callers

nothing calls this directly

Calls 3

create_test_ipFunction · 0.85
delete_test_ipFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected