testing/test_multicall.py
def multicall(methods, kwargs, firstresult=False):
    """utility function to execute the hook implementations loop"""
    caller = _multicall
    hookfuncs = []
    for method in methods:
        f = HookImplementation(method, **method.example_impl)
        hookfuncs.append(f)
    # our _multicall function returns our own HookResult object.
    # so to make these pluggy tests pass, we have to access .result to mimic
    # the old behavior (that directly returns results).
    return caller(hookfuncs, kwargs, firstresult=firstresult).result
utility function to execute the hook implementations loop
utility function to execute the hook implementations loop
utility function to execute the hook implementations loop
def multicall(methods, kwargs, firstresult=False):
    caller = _multicall
    hookfuncs = []
    for method in methods:
        f = HookImplementation(method, **method.example_impl)
        hookfuncs.append(f)
    return caller(hookfuncs, kwargs, firstresult=firstresult).result
def multicall ( methods , kwargs , firstresult = False ) : caller = _multicall hookfuncs = [ ] for method in methods : f = HookImplementation ( method , ** method . example_impl ) hookfuncs . append ( f ) return caller ( hookfuncs , kwargs , firstresult = firstresult ) . result
utility function to execute the hook implementations loop
utility function to execute the hook implementations loop
"""utility function to execute the hook implementations loop""" # our _multicall function returns our own HookResult object. # so to make these pluggy tests pass, we have to access .result to mimic # the old behavior (that directly returns results).
methods
kwargs
firstresult