by Jacob Hallén for
Writing automated tests for your code is a requirement in modern software development and there lots of tools for collecting and running tests. There are also lots of instructions for how to use the tools.
However, there are very few places where you can find out how to write your code so that it is testable and how to write meaningful tests.
This talk will focus on best practices for writing tests and you should come away from it with a better understanding of what kinds of test to write, when to write them and how to think about testing problems.
The talk is designed for beginner coders and people who have recently started to learn Python. We will be using the Python unittest framework and py.test in the examples.