mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Disable some incorrect cssutils warnings.
This commit is contained in:
parent
08f3bd2557
commit
b6083e5bbf
@ -23,9 +23,11 @@ Test the drawing functions.
|
||||
"""
|
||||
|
||||
import os.path
|
||||
import functools
|
||||
from array import array
|
||||
|
||||
import png
|
||||
import cssutils
|
||||
from attest import Tests, assert_hook # pylint: disable=W0611
|
||||
|
||||
from . import resource_filename, TestPNGDocument, FONTS
|
||||
@ -703,7 +705,20 @@ def test_visibility():
|
||||
span { visibility: visible } '''})
|
||||
|
||||
|
||||
|
||||
def disable_cssutils_validation(function):
|
||||
"""cssutils.profile.skipValidation = True
|
||||
"""
|
||||
@functools.wraps(function)
|
||||
def wrapper():
|
||||
cssutils.profile.skipValidation = True
|
||||
function()
|
||||
cssutils.profile.skipValidation = False
|
||||
return wrapper
|
||||
|
||||
|
||||
@SUITE.test
|
||||
@disable_cssutils_validation
|
||||
def test_tables():
|
||||
source = '''
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user