kopia lustrzana https://github.com/wagtail/wagtail
Ignore noise from warnings in test_check_invalid_base_form_class
rodzic
b455c659b7
commit
8d008bcfaf
|
@ -203,9 +203,8 @@ class TestPageEditHandlers(TestCase):
|
||||||
with mock.patch.object(ValidatedPage, 'base_form_class', new=BadFormClass):
|
with mock.patch.object(ValidatedPage, 'base_form_class', new=BadFormClass):
|
||||||
errors = checks.run_checks()
|
errors = checks.run_checks()
|
||||||
|
|
||||||
# ignore CSS loading errors (to avoid spurious failures on CI servers that
|
# Only look at errors (e.g. ignore warnings about CSS not being built)
|
||||||
# don't build the CSS)
|
errors = [e for e in errors if e.level >= checks.ERROR]
|
||||||
errors = [e for e in errors if e.id != 'wagtailadmin.W001']
|
|
||||||
|
|
||||||
# Errors may appear out of order, so sort them by id
|
# Errors may appear out of order, so sort them by id
|
||||||
errors.sort(key=lambda e: e.id)
|
errors.sort(key=lambda e: e.id)
|
||||||
|
|
Ładowanie…
Reference in New Issue