3 ms·
Spies are a different thing: they allow any interaction, recording it all so that you can inspect it layer. Python's "mock" library, for example, is mostly a sp
by gary_bernhardt 10y ago
Spies are a different thing: they allow any interaction, recording it all so that you can inspect it layer. Python's "mock" library, for example, is mostly a spy library.
- dpark 10y ago> Python's "mock" library, for example, is mostly a spy library. It's almost as if the experts don't all agree with this terminology. Edit: This was a bit too snarky, but truthfully, I don't see evidence in the field that these definitions are widely used. I see evidence that an very small crowd is using these terms and asserting their correctness. Meanwhile the rest of the industry thinks anything they use as a "double" in a test is a "mock". Even the people writing widely-used mocking libraries aren't using this terminology consistently.