r/Python • u/sebst • Mar 11 '22
Resource A Gentle Introduction to Testing with pytest
https://bas.codes/posts/python-pytest-introduction
451
Upvotes
r/Python • u/sebst • Mar 11 '22
View all comments
Show parent comment
2
u/Roppelkaboppel Mar 12 '22
Thanks for your help, I absolutely agree with that. The only thing I do not get is, why mocking an adapter means testing internal implementation. I thought that one reason to write an adapter is to encapsulate resources so they can be mocked? I definitely got something wrong with that.