Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINTENANCE] Complete tests for MetsDocument #919

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

oliver-stoehr
Copy link
Contributor

@oliver-stoehr oliver-stoehr commented Feb 27, 2023

Add missing tests for MetsDocument class.

@sebastian-meyer sebastian-meyer self-requested a review March 1, 2023 21:28
@sebastian-meyer sebastian-meyer added 🛠 maintenance A task to keep the code up-to-date and manageable. ⭐ development fund 2022 A candidate for the Kitodo e.V. development fund. labels Mar 1, 2023
@sebastian-meyer sebastian-meyer changed the title Complete tests for MetsDocument [MAINTENANCE] Complete tests for MetsDocument Mar 1, 2023
@oliver-stoehr oliver-stoehr force-pushed the MetsDocumentTest branch 2 times, most recently from 7ea2218 to 36b3ab0 Compare May 19, 2023 13:43
<mets:fileSec>
<mets:fileGrp USE="FULLTEXT">
<mets:file ID="FULLTEXT_0001" MIMETYPE="application/pdf">
<mets:FLocat LOCTYPE="URL" xlink:href="fulltext_0001.xml"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that this (and FULLTEXT_0002 and FULLTEXT_0004) is not a valid URL? Looks like only the entry for FULLTEXT_0003 is used in the tests which also is the only one with a valid URL.

If we do not need invalid METS for testing, we should fix this and use valid URLs for every FULLTEXT entry.

@oliver-stoehr
Copy link
Contributor Author

@sebastian-meyer I fixed the URLs

Copy link
Member

@sebastian-meyer sebastian-meyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sebastian-meyer sebastian-meyer merged commit fe70610 into kitodo:master Oct 27, 2023
6 checks passed
@oliver-stoehr oliver-stoehr deleted the MetsDocumentTest branch October 27, 2023 09:22
@sebastian-meyer sebastian-meyer linked an issue Feb 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ development fund 2022 A candidate for the Kitodo e.V. development fund. 🛠 maintenance A task to keep the code up-to-date and manageable.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FUND] Add tests and significantly improve test coverage
2 participants