@@ -174,7 +174,7 @@ def handler(request: httpx.Request) -> httpx.Response:
174174 assert payload ["watermark_text" ] == "Draft"
175175 assert payload ["text_color_cmyk" ] == "0,0,0,50"
176176 assert "text_color_rgb" not in payload
177- assert payload ["opacity" ] == 0.25
177+ assert payload ["opacity" ] == " 0.25"
178178 assert payload ["output" ] == "custom"
179179 assert payload ["debug" ] == "yes"
180180 assert payload ["id" ] == str (input_file .id )
@@ -242,12 +242,12 @@ def handler(request: httpx.Request) -> httpx.Response:
242242 captured_timeout ["value" ] = request .extensions .get ("timeout" )
243243 payload = json .loads (request .content .decode ("utf-8" ))
244244 assert payload ["watermark_file_id" ] == str (watermark_file .id )
245- assert payload ["watermark_file_scale" ] == pytest . approx ( 0.65 )
245+ assert payload ["watermark_file_scale" ] == " 0.65"
246246 assert payload ["horizontal_alignment" ] == "left"
247247 assert payload ["vertical_alignment" ] == "top"
248- assert payload ["x" ] == - 24
249- assert payload ["y" ] == 48
250- assert payload ["rotation" ] == 15
248+ assert payload ["x" ] == " -24"
249+ assert payload ["y" ] == "48"
250+ assert payload ["rotation" ] == "15"
251251 assert payload ["debug" ] == "img-sync"
252252 assert payload ["id" ] == str (input_file .id )
253253 return httpx .Response (
@@ -593,9 +593,9 @@ def handler(request: httpx.Request) -> httpx.Response:
593593 assert payload ["watermark_text" ] == "AsyncDraft"
594594 assert payload ["horizontal_alignment" ] == "left"
595595 assert payload ["vertical_alignment" ] == "bottom"
596- assert payload ["x" ] == - 72
597- assert payload ["y" ] == 144
598- assert payload ["rotation" ] == 30
596+ assert payload ["x" ] == " -72"
597+ assert payload ["y" ] == " 144"
598+ assert payload ["rotation" ] == "30"
599599 return httpx .Response (
600600 200 ,
601601 json = {
@@ -663,13 +663,13 @@ def handler(request: httpx.Request) -> httpx.Response:
663663 captured_timeout ["value" ] = request .extensions .get ("timeout" )
664664 payload = json .loads (request .content .decode ("utf-8" ))
665665 assert payload ["watermark_file_id" ] == str (watermark_file .id )
666- assert payload ["watermark_file_scale" ] == pytest . approx ( 0.25 )
667- assert payload ["opacity" ] == pytest . approx ( 0.85 )
666+ assert payload ["watermark_file_scale" ] == " 0.25"
667+ assert payload ["opacity" ] == " 0.85"
668668 assert payload ["horizontal_alignment" ] == "right"
669669 assert payload ["vertical_alignment" ] == "bottom"
670- assert payload ["x" ] == 12
671- assert payload ["y" ] == - 18
672- assert payload ["rotation" ] == 330
670+ assert payload ["x" ] == "12"
671+ assert payload ["y" ] == " -18"
672+ assert payload ["rotation" ] == " 330"
673673 assert payload ["debug" ] == "img-async"
674674 assert payload ["id" ] == str (input_file .id )
675675 return httpx .Response (
0 commit comments