uga-libraries / web-download

Download individual files from saved Archive-It crawls.
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Make unit tests for functions #5

Open amhanson9 opened 9 months ago

amhanson9 commented 9 months ago

For now, while we aren't changing the script, having manual testing instructions is sufficient. If we begin more active development, start by making unit tests for all of the functions.

Challenge: the script is accessing the most recent crawl of the websites, so we need to update the test input each time for ones that are using the Archive-It API. The websites would be the same, but the files would not be.

amhanson9 commented 5 months ago

Address issue 2 first (not relying on the current working directory for paths) to simplify paths for the test data.