uga-libraries / hub-monitoring

Scripts for summarizing and validating content on the Digital Production Hub, the UGA Libraries' centralized storage for digital objects that are not suitable for our digital preservation system.
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Make Unit Tests #99

Closed amhanson9 closed 3 weeks ago

amhanson9 commented 2 months ago

We have testing instructions but no unit tests for this script, since it initially was just for a one-off use, and it was ok if it wasn't perfect. Now that it is part of the backlog monitoring workflow, if it keeps being developed, it will save time to have unit tests.

amhanson9 commented 2 months ago

Other code updates to support unit tests or just streamline code a little:

accession_paths() change parameter to collection path instead of giving it separate components of the path and combining within the function.

accession_paths() remove redundant items from the skip list that also match starts with Risk.

update_report() add input_directory as a parameter