Commit a699dea
committed
models/tests: Enforce logo_opacity > 0 and update validation tests
- Updated `_PdfSignatureConfigurationModel` to set `logo_opacity` lower
bound as strictly greater than 0 (`gt=0`) instead of greater than or
equal to 0 (`ge=0`).
- Modified `test_sign_pdf.py` to reflect the updated constraint:
- Adjusted parametrized tests to replace 0.0 with 0.01 for minimum
valid opacity.
- Added test case for 0.0 as an invalid opacity value.
- Updated validation error match regex to account for the new rule.
Assisted-by: Codex1 parent 350e08f commit a699dea
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
| 1013 | + | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| 738 | + | |
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
| |||
748 | 749 | | |
749 | 750 | | |
750 | 751 | | |
751 | | - | |
| 752 | + | |
752 | 753 | | |
753 | 754 | | |
754 | 755 | | |
| |||
0 commit comments