Skip to content

Commit fecb394

Browse files
tests/live: Update signature location in test_live_sign_pdf
- Adjusted `location` coordinates in `test_live_sign_pdf` to begin at `(1, 1)` instead of `(0, 0)` for improved consistency. - Add required location for new signature. - Updated test configurations to reflect the changes in signature naming and layout. Assisted-by: Codex
1 parent b672901 commit fecb394

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/live/test_live_sign_pdf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
def make_signature_location() -> dict[str, dict[str, int] | int]:
1212
return {
13-
"bottom_left": {"x": 0, "y": 0},
14-
"top_right": {"x": 216, "y": 72},
13+
"bottom_left": {"x": 1, "y": 1},
14+
"top_right": {"x": 217, "y": 73},
1515
"page": 1,
1616
}
1717

@@ -104,7 +104,6 @@ def test_live_sign_pdf_with_pfx_credentials(
104104
signature_configuration = {
105105
"type": "new",
106106
"name": "pdfrest-live",
107-
"location": make_signature_location(),
108107
}
109108
with PdfRestClient(
110109
api_key=pdfrest_api_key,
@@ -136,10 +135,11 @@ async def test_live_async_sign_pdf_with_certificate(
136135
) -> None:
137136
signature_configuration = {
138137
"type": "new",
138+
"name": "live-async-signature",
139139
"logo_opacity": 0.5,
140140
"location": {
141-
"bottom_left": {"x": 0, "y": 0},
142-
"top_right": {"x": 216, "y": 72},
141+
"bottom_left": {"x": 1, "y": 1},
142+
"top_right": {"x": 217, "y": 73},
143143
"page": 1,
144144
},
145145
}

0 commit comments

Comments
 (0)