Skip to content

Commit af06b21

Browse files
committed
MAINT: tests/test_appearance_stream.py: Newline after assert statements
1 parent a40e662 commit af06b21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_appearance_stream.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ def test_scale_text():
1212
text, rectangle=rectangle, font_size=font_size, is_multiline=is_multiline
1313
)
1414
assert b"10.1 Tf" in appearance_stream.get_data()
15+
1516
text = "This is a very very long sentence that probably will scale below the minimum font size"
1617
font_size = 0.0
1718
appearance_stream = TextStreamAppearance(
1819
text, rectangle=rectangle, font_size=font_size, is_multiline=is_multiline
1920
)
2021
assert b"4.0 Tf" in appearance_stream.get_data()
22+
2123
rectangle = (0, 0, 160, 360)
2224
font_size = 0.0
2325
text = """Welcome to pypdf
@@ -33,11 +35,13 @@ def test_scale_text():
3335
)
3436
assert b"12 Tf" in appearance_stream.get_data()
3537
assert b"pypdf is a free and open" in appearance_stream.get_data()
38+
3639
rectangle = (0, 0, 160, 160)
3740
appearance_stream = TextStreamAppearance(
3841
text, rectangle=rectangle, font_size=font_size, is_multiline=is_multiline
3942
)
4043
assert b"8.8 Tf" in appearance_stream.get_data()
44+
4145
rectangle = (0, 0, 160, 12)
4246
appearance_stream = TextStreamAppearance(
4347
text, rectangle=rectangle, font_size=font_size, is_multiline=is_multiline
@@ -49,11 +53,13 @@ def test_scale_text():
4953
"""
5054
selection = "Option A"
5155
assert b"4.0 Tf" in appearance_stream.get_data()
56+
5257
text = "pneumonoultramicroscopicsilicovolcanoconiosis"
5358
appearance_stream = TextStreamAppearance(
5459
text, selection, rectangle=rectangle, font_size=font_size, is_multiline=is_multiline
5560
)
5661
assert b"7.2 Tf" in appearance_stream.get_data()
62+
5763
rectangle = (0, 0, 10, 100)
5864
text = "OneWord"
5965
appearance_stream = TextStreamAppearance(

0 commit comments

Comments
 (0)