From 92b6d3e2fadb0d233839870e4a1e40f94eb496f8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 15 May 2020 08:04:14 +0200 Subject: [PATCH] Adjust test to reflect correct behaviour --- tests/exchange/test_binance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/exchange/test_binance.py b/tests/exchange/test_binance.py index e4599dcd7..1753af363 100644 --- a/tests/exchange/test_binance.py +++ b/tests/exchange/test_binance.py @@ -42,7 +42,8 @@ def test_stoploss_order_binance(default_conf, mocker): assert api_mock.create_order.call_args_list[0][1]['type'] == order_type assert api_mock.create_order.call_args_list[0][1]['side'] == 'sell' assert api_mock.create_order.call_args_list[0][1]['amount'] == 1 - assert api_mock.create_order.call_args_list[0][1]['price'] == 220 + # Price should be 1% below stopprice + assert api_mock.create_order.call_args_list[0][1]['price'] == 220 * 0.99 assert api_mock.create_order.call_args_list[0][1]['params'] == {'stopPrice': 220} # test exception handling