Skip to content

Commit

Permalink
Fix error messages in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Oct 30, 2020
1 parent a3c3bb5 commit 77dbcb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion weasyprint/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def assert_links(html, expected_links_by_page, expected_anchors_by_page,
<div style="-weasy-link: url(../lipsum);
display: block; margin: 10px 5px">
''', [[]], [{}], [([], [])], base_url=None, warnings=[
'WARNING: Ignored `-weasy-link: url("../lipsum")` at 1:1, '
'WARNING: Ignored `-weasy-link: url(../lipsum)` at 1:1, '
'Relative URI reference without a base URI'])

# Internal or absolute URI reference without a base URI: OK
Expand Down
2 changes: 1 addition & 1 deletion weasyprint/tests/test_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def test_relative_links_missing_base():
with pytest.raises(AttributeError):
pdf_file.pages[0].get_indirect_dict_array('Annots', pdf_file)
assert len(logs) == 1
assert 'WARNING: Ignored `-weasy-link: url("../lipsum")`' in logs[0]
assert 'WARNING: Ignored `-weasy-link: url(../lipsum)`' in logs[0]
assert 'Relative URI reference without a base URI' in logs[0]


Expand Down

0 comments on commit 77dbcb7

Please sign in to comment.