3 ms·Writing Good Unit Tests; Don’t Mock Database Connections7 points by wagslane 4y agoHiJon89 4y agoWe don’t need to write a test that tests this function as a whole, we can test the parts we care about independently. What could possibly go wrong :)wagslane 4y agoWell this is about unit tests - you should probably write an integration test for that.