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 Report Generation #50

Closed JCantu248 closed 1 year ago

JCantu248 commented 1 year ago

🗣 Description

This PR adds test_report_generator.py and test cases for report_gen(). Resolves #22

💭 Motivation and context

This PR will validate the functionality of the report_gen() function, to ensure it creates and returns a ReportLab PDF from a custom document template. It also tests to make sure the report_gen() function will throw an exception if a NoneType argument is provided to it.

🧪 Testing

Tests were run with using PyTest and testing value were provided to ensure both success and failure conditions were reached on the assert statements.

✅ Pre-approval checklist

✅ Pre-merge checklist

✅ Post-merge checklist