Browse Source

Update test for streaming tutorial

pull/15023/head
Sebastián Ramírez 5 months ago
parent
commit
c3a7df139f
  1. 15
      tests/test_tutorial/test_stream_data/test_tutorial002.py

15
tests/test_tutorial/test_stream_data/test_tutorial002.py

@ -26,6 +26,7 @@ def get_client(mod):
[ [
"/image/stream", "/image/stream",
"/image/stream-no-async", "/image/stream-no-async",
"/image/stream-no-async-yield-from",
"/image/stream-no-annotation", "/image/stream-no-annotation",
"/image/stream-no-async-no-annotation", "/image/stream-no-async-no-annotation",
], ],
@ -73,6 +74,20 @@ def test_openapi_schema(client: TestClient):
}, },
} }
}, },
"/image/stream-no-async-yield-from": {
"get": {
"summary": "Stream Image No Async Yield From",
"operationId": "stream_image_no_async_yield_from_image_stream_no_async_yield_from_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"image/png": {"schema": {"type": "string"}}
},
}
},
}
},
"/image/stream-no-annotation": { "/image/stream-no-annotation": {
"get": { "get": {
"summary": "Stream Image No Annotation", "summary": "Stream Image No Annotation",

Loading…
Cancel
Save