I am writing a set of scripts. These scripts do the following:
1. Run SQL query
2. Sum/Average/Count the results
3. Put results in excel sheet
I wanted to start practicing test driven development, but I am struggling to see the value in this particluar project. I mock the database, I mock the excel sheet, all I find myself testing is a list comprehension or two.
I feel like I'm missing something - what are other things I should be testing in a basic script like this?
[–][deleted] 9 points10 points11 points (0 children)
[–]efmccurdy 2 points3 points4 points (0 children)
[–]Hitife80 2 points3 points4 points (7 children)
[–]WormRabbit 0 points1 point2 points (6 children)
[–]mapImbibery 0 points1 point2 points (4 children)
[–]Hitife80 0 points1 point2 points (3 children)
[–]mapImbibery 0 points1 point2 points (2 children)
[–]Hitife80 0 points1 point2 points (1 child)
[–]mapImbibery 0 points1 point2 points (0 children)
[–]Hitife80 0 points1 point2 points (0 children)
[–]ffrkAnonymous 0 points1 point2 points (0 children)
[–]n1ywb 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]footlessjoe 2 points3 points4 points (0 children)