Add test for empty order (cancelled order)
This commit is contained in:
parent
0806f253b1
commit
ea112fb583
@ -2910,6 +2910,9 @@ def test_check_order_canceled_empty(mocker, default_conf, exchange_name, order,
|
|||||||
({'amount': 10.0, 'fee': {}}, False),
|
({'amount': 10.0, 'fee': {}}, False),
|
||||||
({'result': 'testest123'}, False),
|
({'result': 'testest123'}, False),
|
||||||
('hello_world', False),
|
('hello_world', False),
|
||||||
|
({'status': 'canceled', 'amount': None, 'fee': None}, False),
|
||||||
|
({'status': 'canceled', 'filled': None, 'amount': None, 'fee': None}, False),
|
||||||
|
|
||||||
])
|
])
|
||||||
def test_is_cancel_order_result_suitable(mocker, default_conf, exchange_name, order, result):
|
def test_is_cancel_order_result_suitable(mocker, default_conf, exchange_name, order, result):
|
||||||
exchange = get_patched_exchange(mocker, default_conf, id=exchange_name)
|
exchange = get_patched_exchange(mocker, default_conf, id=exchange_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user