We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
firstresult
1 parent 550f4b2 commit 19055e5Copy full SHA for 19055e5
testing/test_multicall.py
@@ -26,7 +26,7 @@ def MC(methods, kwargs, firstresult=False):
26
hookfuncs.append(f)
27
if '__multicall__' in f.argnames:
28
caller = _legacymulticall
29
- return caller(hookfuncs, kwargs, specopts={"firstresult": firstresult})
+ return caller(hookfuncs, kwargs, firstresult=firstresult)
30
31
32
def test_call_passing():
@@ -105,7 +105,7 @@ def m1():
105
def m2():
106
return None
107
108
- res = MC([m1, m2], {}, {"firstresult": True})
+ res = MC([m1, m2], {}, firstresult=True)
109
assert res == 1
110
res = MC([m1, m2], {}, {})
111
assert res == [1]
@@ -129,7 +129,7 @@ def m2():
129
assert res == [2]
130
assert out == ["m1 init", "m2", "m1 finish"]
131
out[:] = []
132
- res = MC([m2, m1], {}, {"firstresult": True})
+ res = MC([m2, m1], {}, firstresult=True)
133
assert res == 2
134
135
0 commit comments