<div dir="ltr"><div style>I'm having a strange issue with Mock (version 1.0.1) that I've never noticed before</div><div style><br></div><div style>So I have a patch in this form:</div><div> @patch('app.notifications.create_notification')</div>
<div> def test_challenge_ended_going_in_review(self, fake_create):</div><div><br></div><div><br></div><div style>but I get an error from that same test complaining about:</div><div style>AttributeError: <module 'app.handlers.notifications' from '/home/andrea/wazoku/wazoku/wazoku-api/api/app/handlers/notifications/__init__.pyc'> does not have the attribute 'create_notification'<br>
</div><div style><br></div><div style>but I can't figure how and why it adds the "handlers" in between..</div><div style>app/notifications.py is a perfectly normal module, what could be messing up things?</div>
<div style><br>Thanks</div></div>