0:18:23
Mocks: Do's and Dont's
Django London 2020 · April 13, 2021
Julius Seporaitis argues that mocks should be avoided when real dependencies or well-tested fakes are practical, because mocks expose implementation details and make tests brittle when code changes. He recommends using mocks mainly to force dependencies into specific states while testing state-changing code, and explains…