cisagov / tpt-reports

Process to build and distribute Technical Phishing Test (TPT) reports
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Add tests for exception handling in parse_json() #61

Closed JCantu248 closed 1 year ago

JCantu248 commented 1 year ago

💡 Summary

Add a test case to verify the exception handler in parse_json().

Motivation and context

This is needed to verify our exception handling code is correct.

Implementation notes

Please provide details for implementation, such as:

Add a test case that passes in a JSON object with invalid data and verify the exception is caught in the except block.

Acceptance criteria

Work is finished when a test for the exception handling is added and all pytest cases are successful.

schmelz21 commented 1 year ago

Completed in Release 1.0.0