[TIP] strange mock behaviour

andrea crotti andrea.crotti.0 at gmail.com
Wed Jun 12 04:03:08 PDT 2013

I'm having a strange issue with Mock (version 1.0.1) that I've never
noticed before

So I have a patch in this form:
    def test_challenge_ended_going_in_review(self, fake_create):

but I get an error from that same test complaining about:
AttributeError: <module 'app.handlers.notifications' from
does not have the attribute 'create_notification'

but I can't figure how and why it adds the "handlers" in between..
app/notifications.py is a perfectly normal module, what could be messing up

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130612/d1ced847/attachment.html>

More information about the testing-in-python mailing list