Skip to content

Commit

Permalink
adapt pixel_density test
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Nov 5, 2019
1 parent 17cf70d commit 8767e03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/validator/test_workspace_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def test_validate_pixel_density_too_low(self):
workspace.mets.add_file('OCR-D-GT-BIN', ID='file1', mimetype='image/png', pageId='page1', url=imgpath)
workspace.save_mets()
report = WorkspaceValidator.validate(self.resolver, join(tempdir, 'mets.xml'), skip=[], download=True)
self.assertEqual(len(report.errors), 2)
self.assertIn("xResolution", report.errors[0])
self.assertIn("yResolution", report.errors[1])
self.assertEqual(len(report.warnings), 0)
self.assertEqual(len(report.warnings), 2)
self.assertIn("xResolution", report.warnings[0])
self.assertIn("yResolution", report.warnings[1])
self.assertEqual(len(report.errors), 0)
self.assertEqual(len(report.notices), 0)

def test_bad_workspace(self):
Expand Down

0 comments on commit 8767e03

Please sign in to comment.