forked from mirrors/bookwyrm
Skip unescaped chars warning in html validator
jankily
This commit is contained in:
parent
5cdfd29f9e
commit
0dc6a18201
1 changed files with 3 additions and 1 deletions
|
@ -76,6 +76,8 @@ class BookViews(TestCase):
|
||||||
"warn-proprietary-attributes": False,
|
"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:
|
if errors:
|
||||||
raise Exception(errors)
|
raise Exception(errors)
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
|
@ -137,7 +139,7 @@ class BookViews(TestCase):
|
||||||
html = result.render()
|
html = result.render()
|
||||||
_, errors = tidy_document(
|
_, errors = tidy_document(
|
||||||
html.content,
|
html.content,
|
||||||
ptions={
|
options={
|
||||||
"drop-empty-elements": False,
|
"drop-empty-elements": False,
|
||||||
"warn-proprietary-attributes": False,
|
"warn-proprietary-attributes": False,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue