white_check_mark: fix page validator test
@@ -10,19 +10,19 @@ class TestPageValidator(TestCase):
def test_validate_filename(self):
report = PageValidator.validate_filename(assets.path_to('glyph-consistency/data/OCR-D-GT-PAGE/FAULTY_GLYPHS'))
- self.assertEqual(len(report.errors), 63, 'errors')
+ self.assertEqual(len(report.errors), 60, 'errors')
def test_validate_ocrd_file(self):
resolver = Resolver()
workspace = resolver.workspace_from_url(assets.url_of('glyph-consistency/data/mets.xml'))
ocrd_file = workspace.mets.find_files(ID="FAULTY_GLYPHS_FILE")[0]
report = PageValidator.validate_ocrd_file(ocrd_file)
- self.assertEqual(len(report.errors), 63, 'errors')
+ self.assertEqual(len(report.errors), 60, 'errors')
def test_fix(self):
page = parse(assets.path_to('glyph-consistency/data/OCR-D-GT-PAGE/FAULTY_GLYPHS'), silence=True)
report = PageValidator.validate_ocrd_page(page)
- self.assertEqual(len(report.errors), 63, 'errors')
+ self.assertEqual(len(report.errors), 60, 'errors')
PageValidator.validate_ocrd_page(page, strictness='fix')
report = PageValidator.validate_ocrd_page(page)
self.assertEqual(len(report.errors), 0, 'no more errors')
