[pytest-dev] (Help) How to replace __multicall__ with hookwrapper?

Ernesto D. Luzon Jr. edluzonjr at gmail.com
Tue Sep 22 21:27:06 CEST 2015


Hi All,

I have code below that is based from the snippet provided by Holger:
http://stackoverflow.com/questions/10754970/in-which-py-test-callout-can-i-find-both-item-and-report-data

def pytest_runtest_makereport(item, call, __multicall__):
    rep = __multicall__.execute()
    setattr(item, "rep_" + rep.when, rep)
    return rep

Now, I'm struggling how to use hookwrapper instead of __multicall__.
I'd really appreciate if someone can help, thanks!

Many thanks,
Ernesto D. Luzon Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20150922/233d63f0/attachment.html>


More information about the pytest-dev mailing list