Commit d71ec95
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 41199cd commit d71ec95
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
988 | | - | |
| 988 | + | |
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
| |||
| 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