userver: samples/flatbuf_service/tests/test_flatbuf.py
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
samples/flatbuf_service/tests/test_flatbuf.py
1# /// [Functional test]
2async def test_flatbuf(service_client):
3 body = bytearray.fromhex(
4 '100000000c00180000000800100004000c000000140000001400000000000000'
5 '16000000000000000a00000048656c6c6f20776f72640000',
6 )
7 response = await service_client.post('/fbs', data=body)
8 assert response.status == 200
9 # /// [Functional test]