Mathspp Blog

testing — The practice of writing tests for your programs

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.