uga-libraries / web-archive-it-api

Scripts for using the Archive-It APIs to generate reports.
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Unit testing for API error with get_metadata() #22

Open amhanson9 opened 1 year ago

amhanson9 commented 1 year ago

Is there a way to cause the API error to happen? Right now, the test does not use the function but instead has the portion of the code assigning and testing the value of status_code to allow an incorrect status to be assigned. Not a priority since this is very simple code.