4 ms·
I really like the fixture system where fixtures can "expand" to multiple values. This is a great way to test combinations of configurations.
by kevincox 3y ago
I really like the fixture system where fixtures can "expand" to multiple values. This is a great way to test combinations of configurations.
- danpalmer 3y agoExactly. I love writing tests that generate themselves. Things like expanding every value in an enum into a new test case so that new enum values are tested automatically. This stuff isn't a silver bullet, but it can go a long way to commoditising certain kinds of code change such that the dev resource necessary for them mostly disappears. At my previous place of work we had quite a few non-engineers semi-regularly contributing actual Python code. It was mostly things like adding new enum values, or tweaking properties on classes, but we had robust testing that verified all of those sorts of changes in generic ways and automatically generated tests for new pieces, and it was basically hands-off from engineering.