forked from mirrors/bookwyrm
More error filtering
This commit is contained in:
parent
9a96df1712
commit
ccc52287c5
1 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue