mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
chore(tests): Filled orders should have an average.
This commit is contained in:
parent
c6d132376a
commit
34d7d530a1
|
@ -76,7 +76,8 @@ class TestCCXTExchange:
|
|||
assert isinstance(po["timestamp"], int)
|
||||
assert isinstance(po["price"], float)
|
||||
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 po["average"] == 15.5
|
||||
assert po["symbol"] == pair
|
||||
|
|
Loading…
Reference in New Issue
Block a user