mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 16:07:57 +03:00
Fix the test for tinycss warnings
This commit is contained in:
parent
f6b202fa5f
commit
af7605cce8
@ -294,13 +294,13 @@ def test_warnings():
|
||||
('<link rel=stylesheet href=data:image/png,>',
|
||||
['WARNING: Unsupported stylesheet type: image/png']),
|
||||
('<style>foo { margin-color: red',
|
||||
['WARNING: Ignored declaration', 'unknown property']),
|
||||
['WARNING: Ignored', 'unknown property']),
|
||||
('<style>foo { margin-top: red',
|
||||
['WARNING: Ignored declaration', 'invalid value']),
|
||||
['WARNING: Ignored', 'invalid value']),
|
||||
('<html style="margin-color: red">',
|
||||
['WARNING: Ignored declaration', 'unknown property']),
|
||||
['WARNING: Ignored', 'unknown property']),
|
||||
('<html style="margin-top: red">',
|
||||
['WARNING: Ignored declaration', 'invalid value']),
|
||||
['WARNING: Ignored', 'invalid value']),
|
||||
]:
|
||||
with capture_logs() as logs:
|
||||
TestPNGDocument(source).style_for('')
|
||||
|
Loading…
Reference in New Issue
Block a user