Skip to content

Commit ca7234e

Browse files
committed
test: fix dry-stop tests
1 parent cd7b267 commit ca7234e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/exchange/test_binance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def test_create_stoploss_order_dry_run_binance(default_conf, mocker):
157157
assert "type" in order
158158

159159
assert order["type"] == order_type
160-
assert order["price"] == 220
160+
assert order["price"] == 217.8
161+
assert order["stopPrice"] == 220
161162
assert order["amount"] == 1
162163

163164

tests/exchange/test_htx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def test_create_stoploss_order_dry_run_htx(default_conf, mocker):
123123
assert "type" in order
124124

125125
assert order["type"] == order_type
126-
assert order["price"] == 220
126+
assert order["price"] == 217.8
127+
assert order["stopPrice"] == 220
127128
assert order["amount"] == 1
128129

129130

0 commit comments

Comments
 (0)