Update tests/exchange/test_exchange.py

This commit is contained in:
Matthias 2021-08-02 08:31:33 +02:00 committed by GitHub
parent 25c527ee67
commit 3c5f06d5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2190,7 +2190,7 @@ def test_cancel_order_dry_run(default_conf, mocker, exchange_name):
assert exchange.cancel_order(order_id='123', pair='TKN/BTC') == {}
assert exchange.cancel_stoploss_order(order_id='123', pair='TKN/BTC') == {}
order = exchange.create_order('ETH/BTC', 'limit', "sell", 5, 0.55, 'gtc')
order = exchange.create_order('ETH/BTC', 'limit', "buy", 5, 0.55, 'gtc')
cancel_order = exchange.cancel_order(order_id=order['id'], pair='ETH/BTC')
assert order['id'] == cancel_order['id']