The practice of writing tests for your programs

4 1,293 163
articles words lines of code

Today I learned how to use named tuples to improve readability and flexibility of test parametrisations in pytest.

Today I learned about the parameter match used in pytest.raises.

Yesterday I spent the whole day tryint to patch a module global. This is what I ended up with.

Today I learned how to use Hypothesis to do confident code refactoring.