3 ms·
> This leads to writing tests for both ways of accessing your data, not just one of them. And you shouldn't skimp on this Or you can just keep returning namedt
by Joker_vD 2y ago
> This leads to writing tests for both ways of accessing your data, not just one of them. And you shouldn't skimp on this
Or you can just keep returning namedtuple instead of something else, because then you absolutely can skimp on testing whether what you return does, in fact, satisfies the namedtuple's interface.