Skip to content

Commit a71b0ce

Browse files
Only live-test resolution bounds with PNG
- Use only one graphic type to save on testing time; they all have the same limits.
1 parent 8c9751f commit a71b0ce

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

tests/live/test_live_graphic_conversions.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ class _GraphicEndpointSpec(NamedTuple):
2323
payload_model: type[BasePdfRestGraphicPayload[Any]]
2424

2525

26-
PAYLOAD_MODELS: dict[str, _GraphicEndpointSpec] = {
26+
PNG_PAYLOAD_ONLY: dict[str, _GraphicEndpointSpec] = {
2727
"png": _GraphicEndpointSpec("convert_to_png", PngPdfRestPayload),
28+
}
29+
30+
PAYLOAD_MODELS: dict[str, _GraphicEndpointSpec] = {
31+
**PNG_PAYLOAD_ONLY,
2832
"bmp": _GraphicEndpointSpec("convert_to_bmp", BmpPdfRestPayload),
2933
"gif": _GraphicEndpointSpec("convert_to_gif", GifPdfRestPayload),
3034
"jpeg": _GraphicEndpointSpec("convert_to_jpeg", JpegPdfRestPayload),
@@ -160,8 +164,8 @@ def test_live_graphic_invalid_color_model(
160164

161165
@pytest.mark.parametrize(
162166
("_endpoint_label", "spec"),
163-
PAYLOAD_MODELS.items(),
164-
ids=list(PAYLOAD_MODELS),
167+
PNG_PAYLOAD_ONLY.items(),
168+
ids=list(PNG_PAYLOAD_ONLY),
165169
)
166170
@pytest.mark.parametrize(
167171
("bound", "offset", "should_raise"),

0 commit comments

Comments
 (0)