Skip to content

Commit 0e78645

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 0e78645

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/live/test_live_sign_pdf.py

Lines changed: 5 additions & 4 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

@@ -136,10 +136,11 @@ async def test_live_async_sign_pdf_with_certificate(
136136
) -> None:
137137
signature_configuration = {
138138
"type": "new",
139+
"name": "live-async-signature",
139140
"logo_opacity": 0.5,
140141
"location": {
141-
"bottom_left": {"x": 0, "y": 0},
142-
"top_right": {"x": 216, "y": 72},
142+
"bottom_left": {"x": 1, "y": 1},
143+
"top_right": {"x": 217, "y": 73},
143144
"page": 1,
144145
},
145146
}

0 commit comments

Comments
 (0)