[TIP] strange mock behaviour
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
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...
More information about the testing-in-python