Add more unittest (#241)

This commit is contained in:
Gérald LONLAS
2017-12-27 02:41:11 -08:00
committed by Michael Egger
parent dcd0a0ec61
commit 6c8253a4f5
3 changed files with 123 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ class Trade(_DECL_BASE):
self.close(order['rate'])
else:
raise ValueError('Unknown order type: {}'.format(order['type']))
Trade.session.flush()
cleanup()
def close(self, rate: float) -> None:
"""