[TIP] Unable to mock.patch methods in __init__.py
Ratnadeep Debnath
rtnpro at transifex.com
Sun Jul 15 12:34:19 PDT 2012
Hi all,
Is it OK to use mock.patch to patch stuff in applications (other than testing)?
What I have been trying to do is
https://github.com/rtnpro/pontoon/blob/django_hook/hooks/django/django-pontoon-hook/pontoon_hook/middleware.py
Is it the correct approach to do it?
Please correct me if I am mistaken.
Thanks,
Ratnadeep
More information about the testing-in-python
mailing list