<div dir="ltr"><div style>I&#39;m having a strange issue with Mock (version 1.0.1) that I&#39;ve never noticed before</div><div style><br></div><div style>So I have a patch in this form:</div><div>    @patch(&#39;app.notifications.create_notification&#39;)</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: &lt;module &#39;app.handlers.notifications&#39; from &#39;/home/andrea/wazoku/wazoku/wazoku-api/api/app/handlers/notifications/__init__.pyc&#39;&gt; does not have the attribute &#39;create_notification&#39;<br>
</div><div style><br></div><div style>but I can&#39;t figure how and why it adds the &quot;handlers&quot; 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>