Skip to content

Commit

Permalink
Fix multicall tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Dec 11, 2023
1 parent 0ce0a3e commit f396ace
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions resources/NBTest/NBTest_899_CustomMulticall.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "64050694894fae74",
"metadata": {
"ExecuteTime": {
Expand All @@ -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()"
Expand All @@ -273,7 +274,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"id": "e2347c4c",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -312,7 +313,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"id": "3bae18bc82ad3ccc",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -369,7 +370,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.17"
"version": "3.10.1"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion resources/NBTest/NBTest_899_CustomMulticall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -153,6 +153,7 @@ class MockContract:

with patch.object(multicaller, 'multicall') as mock_multicall:
with multicaller:
multicaller.multicall()
pass

mock_multicall.assert_called_once()
Expand Down

0 comments on commit f396ace

Please sign in to comment.