Update parse_order test

This commit is contained in:
Matthias 2023-01-31 20:59:55 +01:00
parent 8a0fabed0e
commit 9bb376296d

View File

@ -323,7 +323,10 @@ class TestCCXTExchange():
po = exch._api.parse_order(order) po = exch._api.parse_order(order)
assert isinstance(po['id'], str) assert isinstance(po['id'], str)
assert po['id'] is not None assert po['id'] is not None
if len(order.keys()) > 1: if len(order.keys()) < 5:
# Kucoin case
assert po['status'] == 'closed'
continue
assert po['timestamp'] == 1674493798550 assert po['timestamp'] == 1674493798550
assert isinstance(po['datetime'], str) assert isinstance(po['datetime'], str)
assert isinstance(po['timestamp'], int) assert isinstance(po['timestamp'], int)