@@ -83,7 +83,7 @@ def handler(request: httpx.Request) -> httpx.Response:
8383 assert str (output_file .url ).endswith (output_id )
8484
8585
86- def test_convert_to_jpeg_defaults_excluded (monkeypatch : pytest .MonkeyPatch ) -> None :
86+ def test_convert_to_jpeg_defaults_included (monkeypatch : pytest .MonkeyPatch ) -> None :
8787 monkeypatch .delenv ("PDFREST_API_KEY" , raising = False )
8888 input_file = make_pdf_file (PdfRestFileID .generate (1 ))
8989 output_id = "8e9f0011-2222-4bcd-9f00-abcdefabcdef"
@@ -98,7 +98,9 @@ def handler(request: httpx.Request) -> httpx.Response:
9898 assert_conversion_payload (
9999 payload , request_payload , allowed_extras = {"jpeg_quality" }
100100 )
101- assert "jpeg_quality" not in payload
101+ assert payload ["jpeg_quality" ] == 75
102+ assert payload ["resolution" ] == 300
103+ assert payload ["color_model" ] == "rgb"
102104 return httpx .Response (
103105 200 ,
104106 json = {"inputId" : [input_file .id ], "outputId" : [output_id ]},
@@ -457,7 +459,7 @@ def test_convert_to_jpeg_sequence_arguments(monkeypatch: pytest.MonkeyPatch) ->
457459 "page_range" : "1, 3" ,
458460 "smoothing" : "text" ,
459461 }
460- ).model_dump (mode = "json" , by_alias = True , exclude_none = True , exclude_defaults = True )
462+ ).model_dump (mode = "json" , by_alias = True , exclude_none = True )
461463
462464 seen : dict [str , int ] = {"post" : 0 , "get" : 0 }
463465
0 commit comments