More error filtering

This commit is contained in:
Mouse Reeve 2021-09-30 07:47:19 -07:00
parent 9a96df1712
commit ccc52287c5

View file

@ -77,7 +77,11 @@ class BookViews(TestCase):
}, },
) )
# idk how else to filter out these unescape amp errs # 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) errors = "\n".join(
e
for e in errors.split("\n")
if "&book" not in e and "id and name attribute" 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)
@ -127,6 +131,11 @@ class BookViews(TestCase):
"warn-proprietary-attributes": False, "warn-proprietary-attributes": False,
}, },
) )
errors = "\n".join(
e
for e in errors.split("\n")
if "&book" not in e and "id and name attribute" 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)