Mathspp Blog

pytest — The Python testing module Pytest

Today I learned about 5 useful pytest options that let me control what tests to run with respect to failing tests.

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 skip tests on Microsoft Windows in pytest.