Closed bjb28 closed 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, 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.
Recommend this PR be closed as PR #14 far exceeds the improvements offered here.
This PR has been replaced by #14.
π£ Description
This PR is focused on fixing the
test_assessment()
test intest_assessment_json.py
so that it passes with a valid response. The specific commits address the following:docopt
to get the initial test to run. 36089bcopen
to prevent the test form looking for the files. 536ce8djson.load
to load what would have been read from a file. 536ce8dcsv.DictReader
and mock to provide email csv data. 536ce8d, e001e8a, and 4fd96c1build.py
. 4fd96c1Note: 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 thebuilder.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