Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewcasale committed Nov 8, 2023
1 parent 71e53c1 commit dcbe244
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions resources/NBTest/NBTest_037_Exchanges.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"import nest_asyncio\n",
"nest_asyncio.apply()\n",
"import pytest\n",
"import asyncio\n",
"from unittest.mock import AsyncMock\n",
"\n",
"\n",
"print(\"{0.__name__} v{0.__VERSION__} ({0.__DATE__})\".format(CPC))\n",
"print(\"{0.__name__} v{0.__VERSION__} ({0.__DATE__})\".format(Bot))\n",
Expand Down Expand Up @@ -91,7 +94,6 @@
},
"outputs": [],
"source": [
"from unittest.mock import AsyncMock\n",
"\n",
"mocked_contract = Mock()\n",
"\n",
Expand Down Expand Up @@ -155,7 +157,7 @@
},
"outputs": [],
"source": [
"import asyncio, pytest\n",
"\n",
"\n",
"uniswap_v2_exchange = UniswapV2()\n",
"\n",
Expand Down
6 changes: 4 additions & 2 deletions resources/NBTest/NBTest_037_Exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
import nest_asyncio
nest_asyncio.apply()
import pytest
import asyncio
from unittest.mock import AsyncMock


print("{0.__name__} v{0.__VERSION__} ({0.__DATE__})".format(CPC))
print("{0.__name__} v{0.__VERSION__} ({0.__DATE__})".format(Bot))
Expand All @@ -52,7 +55,6 @@
setup_data = json.load(f)

# +
from unittest.mock import AsyncMock

mocked_contract = Mock()

Expand Down Expand Up @@ -80,7 +82,7 @@
# ## test_uniswap_v2_exchange

# +
import asyncio, pytest


uniswap_v2_exchange = UniswapV2()

Expand Down

0 comments on commit dcbe244

Please sign in to comment.