chore(tests): Filled orders should have an average.
This commit is contained in:
@@ -76,7 +76,8 @@ class TestCCXTExchange:
|
|||||||
assert isinstance(po["timestamp"], int)
|
assert isinstance(po["timestamp"], int)
|
||||||
assert isinstance(po["price"], float)
|
assert isinstance(po["price"], float)
|
||||||
assert po["price"] == 15.5
|
assert po["price"] == 15.5
|
||||||
if po["average"] is not None:
|
if po["status"] == "closed":
|
||||||
|
# Filled orders should have average assigned.
|
||||||
assert isinstance(po["average"], float)
|
assert isinstance(po["average"], float)
|
||||||
assert po["average"] == 15.5
|
assert po["average"] == 15.5
|
||||||
assert po["symbol"] == pair
|
assert po["symbol"] == pair
|
||||||
|
|||||||
Reference in New Issue
Block a user