Skip unescaped chars warning in html validator

jankily
This commit is contained in:
Mouse Reeve 2021-09-29 15:47:30 -07:00
parent 5cdfd29f9e
commit 0dc6a18201

View file

@ -76,6 +76,8 @@ class BookViews(TestCase):
"warn-proprietary-attributes": False,
},
)
# idk how else to filter out these unescape amp errs
errors = "\n".join(e for e in errors.split("\n") if "&book" not in e)
if errors:
raise Exception(errors)
self.assertEqual(result.status_code, 200)
@ -137,7 +139,7 @@ class BookViews(TestCase):
html = result.render()
_, errors = tidy_document(
html.content,
ptions={
options={
"drop-empty-elements": False,
"warn-proprietary-attributes": False,
},