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 test cases for generate_reports() #53

Closed JCantu248 closed 11 months ago

JCantu248 commented 11 months ago

πŸ—£ Description

This PR adds test cases for generate_reports() in tpt_reports.py. Resolves Issue #22

πŸ’­ Motivation and context

The added test cases will test ensure that negative boolean status values will be returned if load_json_file() returns a null JSON object, or if parse_json() was not able to parse out valid fields from the file and returns null objects.

πŸ§ͺ Testing

Testing was performed by running PyTest and ensured all added and pre-existing test cases were passing.

βœ… Pre-approval checklist

βœ… Pre-merge checklist

βœ… Post-merge checklist

coveralls commented 11 months ago

Pull Request Test Coverage Report for Build 6509751953


Totals Coverage Status
Change from base Build 6487626291: 0.0%
Covered Lines: 0
Relevant Lines: 0

πŸ’› - Coveralls