File: test_ua.py

package info (click to toggle)
weasyprint 67.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,896 kB
  • sloc: python: 61,025; makefile: 12
file content (13 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Test the user-agent stylesheet."""

import pytest

from weasyprint.html import CSS, HTML5_PH, HTML5_UA, HTML5_UA_FORM

from ..testing_utils import assert_no_logs


@assert_no_logs
@pytest.mark.parametrize('css', [HTML5_UA, HTML5_UA_FORM, HTML5_PH])
def test_ua_stylesheets(css):
    CSS(string=css)