@@ -9,7 +9,10 @@ def test_fill_max_length_text_field_all_chars(
9
9
sample_template_with_max_length_text_field , max_length_expected_directory
10
10
):
11
11
with open (
12
- os .path .join (max_length_expected_directory , "max_length_text_field_all_chars.pdf" ), "rb+"
12
+ os .path .join (
13
+ max_length_expected_directory , "max_length_text_field_all_chars.pdf"
14
+ ),
15
+ "rb+" ,
13
16
) as f :
14
17
obj = PyPDFForm (sample_template_with_max_length_text_field ).fill (
15
18
{
@@ -31,7 +34,10 @@ def test_fill_max_length_text_field_odd_chars(
31
34
sample_template_with_max_length_text_field , max_length_expected_directory
32
35
):
33
36
with open (
34
- os .path .join (max_length_expected_directory , "max_length_text_field_odd_chars.pdf" ), "rb+"
37
+ os .path .join (
38
+ max_length_expected_directory , "max_length_text_field_odd_chars.pdf"
39
+ ),
40
+ "rb+" ,
35
41
) as f :
36
42
obj = PyPDFForm (sample_template_with_max_length_text_field ).fill (
37
43
{
@@ -53,7 +59,10 @@ def test_fill_max_length_text_field_even_chars(
53
59
sample_template_with_max_length_text_field , max_length_expected_directory
54
60
):
55
61
with open (
56
- os .path .join (max_length_expected_directory , "max_length_text_field_even_chars.pdf" ), "rb+"
62
+ os .path .join (
63
+ max_length_expected_directory , "max_length_text_field_even_chars.pdf"
64
+ ),
65
+ "rb+" ,
57
66
) as f :
58
67
obj = PyPDFForm (sample_template_with_max_length_text_field ).fill (
59
68
{
@@ -75,7 +84,8 @@ def test_fill_comb_text_field_all_chars(
75
84
sample_template_with_comb_text_field , max_length_expected_directory
76
85
):
77
86
with open (
78
- os .path .join (max_length_expected_directory , "comb_text_field_all_chars.pdf" ), "rb+"
87
+ os .path .join (max_length_expected_directory , "comb_text_field_all_chars.pdf" ),
88
+ "rb+" ,
79
89
) as f :
80
90
obj = PyPDFForm (sample_template_with_comb_text_field ).fill (
81
91
{
@@ -97,7 +107,8 @@ def test_fill_comb_text_field_odd_chars(
97
107
sample_template_with_comb_text_field , max_length_expected_directory
98
108
):
99
109
with open (
100
- os .path .join (max_length_expected_directory , "comb_text_field_odd_chars.pdf" ), "rb+"
110
+ os .path .join (max_length_expected_directory , "comb_text_field_odd_chars.pdf" ),
111
+ "rb+" ,
101
112
) as f :
102
113
obj = PyPDFForm (sample_template_with_comb_text_field ).fill (
103
114
{
@@ -119,7 +130,8 @@ def test_fill_comb_text_field_even_chars(
119
130
sample_template_with_comb_text_field , max_length_expected_directory
120
131
):
121
132
with open (
122
- os .path .join (max_length_expected_directory , "comb_text_field_even_chars.pdf" ), "rb+"
133
+ os .path .join (max_length_expected_directory , "comb_text_field_even_chars.pdf" ),
134
+ "rb+" ,
123
135
) as f :
124
136
obj = PyPDFForm (sample_template_with_comb_text_field ).fill (
125
137
{
@@ -140,7 +152,9 @@ def test_fill_comb_text_field_even_chars(
140
152
def test_fill_comb_text_field_void (
141
153
sample_template_with_comb_text_field , max_length_expected_directory
142
154
):
143
- with open (os .path .join (max_length_expected_directory , "comb_text_field_void.pdf" ), "rb+" ) as f :
155
+ with open (
156
+ os .path .join (max_length_expected_directory , "comb_text_field_void.pdf" ), "rb+"
157
+ ) as f :
144
158
obj = PyPDFForm (sample_template_with_comb_text_field ).fill ({})
145
159
146
160
expected = f .read ()
@@ -154,7 +168,8 @@ def test_fill_comb_text_field_even_chars_right_aligned(
154
168
):
155
169
with open (
156
170
os .path .join (
157
- max_length_expected_directory , "comb_text_field_even_chars_right_aligned.pdf"
171
+ max_length_expected_directory ,
172
+ "comb_text_field_even_chars_right_aligned.pdf" ,
158
173
),
159
174
"rb+" ,
160
175
) as f :
0 commit comments