by planede · 3y ago · 0 comments
Then I learned about pytest, magicmock, and that the norm for other testing frameworks in other (mostly dynamic) languages is that you can replace whatever member or free function with a mock without this being part of the public interface of the original class or function. This feels insane to me, as this just tests implementation details.
Is there terminology to distinguish between these two kinds of mocking?