I have a module :
Interest
- __init__.py
- simple
- compound
__init__.py:
def add (x, y):
return x + y
I want to test my module using mock. For that, I want to mock the function defined inside
__ init __.py and return mocked value. So how to do that ?
Aucun commentaire:
Enregistrer un commentaire