The example for mocking in MeteoriteStats class is presented in a way that does not showcase the need for mocks.
Could you make an update to the example in order to make it more representative? Adding an additional class whose only job would be the data gathering as you have already suggested in the text or something similar.
Hi @HrMaste just a quick note to say that I'm not ignoring this. I will present the TDD tutorial at EuroPython in July, so by that time I will review and fix the issue you found. Thanks again!
Hi,
The example for mocking in
MeteoriteStats
class is presented in a way that does not showcase the need for mocks. Could you make an update to the example in order to make it more representative? Adding an additional class whose only job would be the data gathering as you have already suggested in the text or something similar.Cheers.