From 0ced7e18c4aeec6179a462860739bd3c7729afb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 6 Dec 2023 14:36:56 +0100 Subject: [PATCH] test: readded failing insufficient balance test --- tests/test_uniswap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_uniswap.py b/tests/test_uniswap.py index 526921f..d43efef 100644 --- a/tests/test_uniswap.py +++ b/tests/test_uniswap.py @@ -476,6 +476,13 @@ def test_make_trade( # ("ETH", "UNI", int(0.000001 * ONE_ETH), ZERO_ADDRESS), # ("UNI", "ETH", int(0.000001 * ONE_ETH), ZERO_ADDRESS), # ("DAI", "UNI", int(0.000001 * ONE_ETH), ZERO_ADDRESS), + ( + "DAI", + "ETH", + 10 * ONE_ETH, + None, + lambda: pytest.raises(InsufficientBalance), + ), ("DAI", "DAI", ONE_USDC, None, lambda: pytest.raises(ValueError)), ], )