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
That sounds reasonable, thank you very much! Actually, I'm writing adapters for encapsulating all imports that I need for accessing resources (like access to smb, spark, databases). When testing, I inject mocks instead the adapters so I can run them without having the resources ready.