You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_chars=min((x2-x1) *0.3125, 90) # Times New Roman size 10; and 90 because the equation doesn't scale well to the longest field on the form, the Charges line in the non-Multnomah form
message="This form will attempt to expunge a case in part. This is relatively rare, and thus these forms should be reviewed particularly carefully."
714
703
warnings.append(message)
715
704
716
-
ifshrunk_fields:
717
-
forfield_name, valueinshrunk_fields.items():
718
-
message=f'* The font size of "{value[1:-1]}" was shrunk to fit the bounding box of "{field_name[1:-1]}". An addendum might be required if it still doesn\'t fit.'
719
-
warnings.append(message)
720
-
721
705
ifwarnings:
722
706
text="# Warnings from RecordSponge \n"
723
707
text+="Do not submit this page to the District Attorney's office. \n\n"
Copy file name to clipboardExpand all lines: src/backend/tests/test_form_filling.py
+6-35Lines changed: 6 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -250,9 +250,6 @@ class TestWarningsGeneration:
250
250
)
251
251
partial_expungement_warning="\\* This form will attempt to expunge a case in part. This is relatively rare, and thus these forms should be reviewed particularly carefully. \n"
252
252
253
-
deffont_warning(self, field_name, value):
254
-
returnf'\\* * The font size of "{value[1:-1]}" was shrunk to fit the bounding box of "{field_name[1:-1]}". An addendum might be required if it still doesn\'t fit. \n'
0 commit comments