cisagov / gophish-tools

Helpful tools for interacting with a GoPhish phishing instance
Creative Commons Zero v1.0 Universal
42 stars 6 forks source link

Fix test assessment json. #12

Closed bjb28 closed 4 years ago

bjb28 commented 4 years ago

πŸ—£ Description

This PR is focused on fixing the test_assessment() test in test_assessment_json.py so that it passes with a valid response. The specific commits address the following:

Note: I did not address formatting throughout the builder.py script with this PR as a future PR will be done for the entire project to address overall formatting in chunks.

πŸ’­ Motivation and Context

Fixing the test_assessment() test will allow for testing of the builder.py script. With this test functioning, making future changes to the script will be easier to test. This PR closes #6.

πŸ§ͺ Testing

After getting the pytest to run successfully, I was able to run the automated tests. In addition to this, I also ran several manual tests through the script to ensure a successful run outputs the expected json file. Failing tests were also run with specific errors to ensure they would successfully produce the expected reaction.

πŸ“· Screenshots (if appropriate)

πŸš₯ Types of Changes

βœ… Checklist

bjb28 commented 4 years ago

@dav3r, if you have not started reviewing this please hold off. I have been working to update the builder.py script and would like to incorporate these changes into that update. My goal is to have this completed today or tomorrow.

dav3r commented 4 years ago

@dav3r, if you have not started reviewing this please hold off. I have been working to update the builder.py script and would like to incorporate these changes into that update. My goal is to have this completed today or tomorrow.

@bjb28, I started reviewing this last week, but I didn't get too far. I will wait until I hear from you and then will review the whole thing.

bjb28 commented 4 years ago

Recommend this PR be closed as PR #14 far exceeds the improvements offered here.

dav3r commented 4 years ago

This PR has been replaced by #14.