Closed laghee closed 5 years ago
I don't have a test for this yet because I need to figure out how to test a script in unittest.
Currently the script is not very testable because it's all a big main function with a couple of functions, but it doesn't have to be. It's not that much of an issue for now. We started with a small script and it's ok.
We can create more functions and associated tests with it. Basically you will not "test a script" but you will be testing the functions in that script. We can create a new issue for this so we don't forget.
Changes made, @karlcow!
I don't have a test for this yet because I need to figure out how to test a script in unittest. Maybe we want to pull out the act of writing to the database and make it a helper function? That might make it easier to mock.
🤷♀️ Let me know what you think, @karlcow ...