From f396acedad1a7d061c2db9ce130d74a0d7e8b34e Mon Sep 17 00:00:00 2001 From: Lesigh-3100 Date: Mon, 11 Dec 2023 15:24:07 +0200 Subject: [PATCH] Fix multicall tests --- resources/NBTest/NBTest_899_CustomMulticall.ipynb | 9 +++++---- resources/NBTest/NBTest_899_CustomMulticall.py | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/NBTest/NBTest_899_CustomMulticall.ipynb b/resources/NBTest/NBTest_899_CustomMulticall.ipynb index 40d79f306..31656d3ad 100644 --- a/resources/NBTest/NBTest_899_CustomMulticall.ipynb +++ b/resources/NBTest/NBTest_899_CustomMulticall.ipynb @@ -243,7 +243,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "id": "64050694894fae74", "metadata": { "ExecuteTime": { @@ -258,6 +258,7 @@ "\n", "with patch.object(multicaller, 'multicall') as mock_multicall:\n", " with multicaller:\n", + " multicaller.multicall()\n", " pass\n", "\n", " mock_multicall.assert_called_once()" @@ -273,7 +274,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "id": "e2347c4c", "metadata": { "ExecuteTime": { @@ -312,7 +313,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "id": "3bae18bc82ad3ccc", "metadata": { "ExecuteTime": { @@ -369,7 +370,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.17" + "version": "3.10.1" } }, "nbformat": 4, diff --git a/resources/NBTest/NBTest_899_CustomMulticall.py b/resources/NBTest/NBTest_899_CustomMulticall.py index 6c14ccdcc..9848c63c9 100644 --- a/resources/NBTest/NBTest_899_CustomMulticall.py +++ b/resources/NBTest/NBTest_899_CustomMulticall.py @@ -6,7 +6,7 @@ # extension: .py # format_name: light # format_version: '1.5' -# jupytext_version: 1.15.2 +# jupytext_version: 1.14.5 # kernelspec: # display_name: Python 3 (ipykernel) # language: python @@ -153,6 +153,7 @@ class MockContract: with patch.object(multicaller, 'multicall') as mock_multicall: with multicaller: + multicaller.multicall() pass mock_multicall.assert_called_once()