We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c9751f commit a71b0ceCopy full SHA for a71b0ce
1 file changed
tests/live/test_live_graphic_conversions.py
@@ -23,8 +23,12 @@ class _GraphicEndpointSpec(NamedTuple):
23
payload_model: type[BasePdfRestGraphicPayload[Any]]
24
25
26
-PAYLOAD_MODELS: dict[str, _GraphicEndpointSpec] = {
+PNG_PAYLOAD_ONLY: dict[str, _GraphicEndpointSpec] = {
27
"png": _GraphicEndpointSpec("convert_to_png", PngPdfRestPayload),
28
+}
29
+
30
+PAYLOAD_MODELS: dict[str, _GraphicEndpointSpec] = {
31
+ **PNG_PAYLOAD_ONLY,
32
"bmp": _GraphicEndpointSpec("convert_to_bmp", BmpPdfRestPayload),
33
"gif": _GraphicEndpointSpec("convert_to_gif", GifPdfRestPayload),
34
"jpeg": _GraphicEndpointSpec("convert_to_jpeg", JpegPdfRestPayload),
@@ -160,8 +164,8 @@ def test_live_graphic_invalid_color_model(
160
164
161
165
@pytest.mark.parametrize(
162
166
("_endpoint_label", "spec"),
163
- PAYLOAD_MODELS.items(),
- ids=list(PAYLOAD_MODELS),
167
+ PNG_PAYLOAD_ONLY.items(),
168
+ ids=list(PNG_PAYLOAD_ONLY),
169
)
170
171
("bound", "offset", "should_raise"),
0 commit comments