Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
amfet42 committed Sep 19, 2023
1 parent 0ae76f4 commit 837e2a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test_deployment/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def test_exchange(
0,
sender=admin,
)
dy_eth = tx.events.filter(pool.TokenExchange)[
0
].tokens_bought # return_value is broken in ape somehow
assert dy_eth > 0
assert tx.return_value > 0

@pytest.mark.parametrize("i", (0, 1, 2))
def test_remove_liquidity_one(
Expand All @@ -72,6 +69,6 @@ def test_remove_liquidity_one(
sender=admin,
) # noqa: E501

dy_coin = tx.events.filter(pool.RemoveLiquidityOne)[0].coin_amount
dy_coin = tx.return_value
assert dy_coin > 0
assert coin_contract.balanceOf(admin) == coin_balance + dy_coin

0 comments on commit 837e2a7

Please sign in to comment.