userver: samples/production_service/tests/test_ping.py
Loading...
Searching...
No Matches
samples/production_service/tests/test_ping.py
1async def test_ping(service_client):
2 response = await service_client.get('/ping')
3 assert response.status == 200
4
5 # Tracing headers should be present
6 assert 'X-YaRequestId' in response.headers.keys()
7 assert 'X-YaTraceId' in response.headers.keys()
8 assert 'X-YaSpanId' in response.headers.keys()