Use pytest fixtures to parametrize tests, instead of for loops.