4 ms·
Code review, dev/stage/prod workflows all vary on a team-by-team basis. If you already know what they are and why they exist, there isn't a better way to "prepa
by anonytrary 8y ago
Code review, dev/stage/prod workflows all vary on a team-by-team basis. If you already know what they are and why they exist, there isn't a better way to "prepare" for these than to just roll up your sleeves and look at how your current team implements these things.
Good testing practices:
1. Minimize mocking as much as you can -- as a rule of thumb, mocking is inversely proportional to test confidence.
2. Don't test implementation details, test public-facing APIs. This way, your implementation can change. Mocking makes this harder. Don't test how you get things done -- test that they are done.
3. Make sure your API is well defined before you start writing tests, or you will waste time.
You can find loads of Python testing guides on Google on the first two points. There will be times when you have to break some of those rules, but knowing when will come with experience.