Parametrizing Pytest Fixtures

from blog Roman Imankulov, | ↗ original
Photo by Markus Winkler Parametrizing pytest fixtures is a powerful technique for writing more concise and readable tests. I find parametrizing fixtures helpful in two cases. When testing multiple implementations of the same interface. When testing the same function against different inputs. Testing interface implementations Thanks to Python duck...