samedi 23 avril 2016

Does python mock module work by dependency injection?

So, the main question is on the title. I'm trying to find out if it is correct to say that python mock module uses dependency injection pattern for mocking object calls.

I'm not familiar with DI pattern but from what I've read and what I saw with debugger in mock module underhood look like mock() uses DI.

Am I right and mock() is DI or I'm missing something about this pattern and mocking?

Aucun commentaire:

Enregistrer un commentaire