Skip to content

Commit 89e68d7

Browse files
committed
test: add test case for string custom stake amount
1 parent c205608 commit 89e68d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_wallets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def test_get_trade_stake_amount_unlimited_amount(
191191
(1000, None, 1000, 10000, None, 1000), # No min-stake-amount could be determined
192192
# Rebuy - resulting in too high stake amount. Adjusting.
193193
(2000, 15, 2000, 3000, 1500, 1500),
194+
("undefined", 15, 100, 10000, None, 0), # string stake amount
195+
("22.2", 15, 100, 10000, None, 0), # string stake amount but as float
194196
],
195197
)
196198
def test_validate_stake_amount(

0 commit comments

Comments
 (0)