TIL (Today I Learned)

The TIL series of articles contains very short articles documenting something I learned “today”.

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.