Update parse_order test
This commit is contained in:
parent
8a0fabed0e
commit
9bb376296d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user