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