1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00

Fix line breaking tests

This commit is contained in:
Guillaume Ayoub 2019-04-12 16:27:33 +02:00
parent 9b05297116
commit cc512b3ec0

View File

@ -47,7 +47,7 @@ def test_line_with_any_width():
@assert_no_logs
def test_line_breaking():
string = 'This is a text for test'
string = 'Thïs is a text for test'
# These two tests do not really rely on installed fonts
_, _, resume_at, _, _, _ = make_text(string, 90, font_size=1)
@ -75,11 +75,6 @@ def test_line_breaking_rtl():
assert string.encode('utf-8')[resume_at:].decode('utf-8') == (
'ايبسوم دولا')
_, _, resume_at, _, _, _ = make_text(
string, 100, font_family=SANS_FONTS.split(','), font_size=16)
assert string.encode('utf-8')[resume_at:].decode('utf-8') == (
'دولا')
@assert_no_logs
def test_text_dimension():