Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ocrd_validators/ocrd_validators/workspace_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ def _validate_mets_files(self):
for f in self.mets.find_files():
if f._el.get('GROUPID'): # pylint: disable=protected-access
self.report.add_notice("File '%s' has GROUPID attribute - document might need an update" % f.ID)
if not f.pageId:
self.report.add_error("File '%s' does not manifest any physical page." % f.ID)
if not f.url:
self.report.add_error("File '%s' has no mets:Flocat/@xlink:href" % f.ID)
continue
Expand Down
2 changes: 2 additions & 0 deletions tests/validator/test_workspace_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path
from os.path import join
from shutil import copytree
import pytest

from ocrd_utils import pushd_popd
from ocrd.resolver import Resolver
Expand Down Expand Up @@ -116,6 +117,7 @@ def test_validate_file_groups_bad_name(self):
self.assertIn("Invalid USE name 'X' in fileGrp", report.notices[0])
self.assertIn('No files', report.errors[0])

@pytest.mark.skip(reason="missing pageId means document-global now")
def test_validate_files_nopageid(self):
with TemporaryDirectory() as tempdir:
workspace = self.resolver.workspace_from_nothing(directory=tempdir)
Expand Down