Skip to content

Commit a3a8efb

Browse files
committed
fixup! tests(Flashloan,Flashlend): add tests for flash lending functionality
1 parent c18b356 commit a3a8efb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_flashloans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def purse(singleton, owner, flashloan, flashlend):
1414

1515
def test_flashloan(purse, token, other):
1616
assert token.allowance(purse, other) == 0
17-
with ape.reverts("Flashloan:!authorized"):
17+
with ape.reverts(expected_message="Flashloan:!authorized"):
1818
purse.onFlashLoan(purse, token, 1_000, 0, b"", sender=other)
1919
assert token.allowance(purse, other) == 0
2020

@@ -43,7 +43,7 @@ def test_flashlend(purse, token, flash_receiver):
4343
assert purse.maxFlashLoan(token) == 0
4444
assert purse.flashFee(token, 1_000_000) == 0
4545

46-
with ape.reverts("Flashlend:!token-allowed"):
46+
with ape.reverts(expected_message="Flashlend:!token-allowed"):
4747
purse.flashLoan(flash_receiver, token, token.balanceOf(purse) // 100, b"")
4848

4949
purse.setFlashFee(token, 10_000) # 10k mbps = 10 bps = 0.1%

0 commit comments

Comments
 (0)