Skip to content

Commit

Permalink
test_ocrd_mets.py: also test empty for_fileIds list
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Feb 23, 2024
1 parent f63ff34 commit e5b5317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/model/test_ocrd_mets.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def test_physical_pages_for_fileids(sbb_directory_ocrd_mets):
assert sbb_directory_ocrd_mets.get_physical_pages(
for_fileIds=['FILE_0002_IMAGE']) == ['PHYS_0002']

def test_physical_pages_for_emtpy_fileids(sbb_directory_ocrd_mets):
assert sbb_directory_ocrd_mets.get_physical_pages(
for_fileIds=[]) == []


def test_add_group():
mets = OcrdMets.empty_mets()
Expand Down

0 comments on commit e5b5317

Please sign in to comment.