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

It is difficult to minimize METS for testing #58

Open
ross-spencer opened this issue Sep 22, 2020 · 0 comments
Open

It is difficult to minimize METS for testing #58

ross-spencer opened this issue Sep 22, 2020 · 0 comments
Labels
cleanup Work that can make code/data cleaner or easier to maintain

Comments

@ross-spencer
Copy link
Contributor

Recording the thought here - but it might be useful to have some way to minimize a METS before recording it as a test fixture. Is it possible to do via mets-reader-writer? Trying to write a test, and trying to optimize the space we use for fixtures is a pain when you're trying to write the actual feature you're interested in. Devs should be motivated to write tests. We have an option to mock responses to serialize the METS for smaller etree objects, but what if the integration level testing is just as important.

I've turned off events in some of the METS I am submitting, but we can do more to remove sections of the PREMIS - in the example I am working on - possibly all the amdSecs if we remove the references in the fileSec.

@mcantelon mcantelon added the cleanup Work that can make code/data cleaner or easier to maintain label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Work that can make code/data cleaner or easier to maintain
Projects
None yet
Development

No branches or pull requests

2 participants