From e24df7cffc01937a211db2d29f44bccc3d740bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 14 May 2018 08:22:01 +0200 Subject: Fix orders marked as dust even when closed --- tests/test_portfolio.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_portfolio.py b/tests/test_portfolio.py index 6ca3327..bc69921 100644 --- a/tests/test_portfolio.py +++ b/tests/test_portfolio.py @@ -832,6 +832,10 @@ class OrderTest(WebMockTestCase): self.m.ccxt.is_dust_trade.return_value = True order.mark_dust_amount_remaining_order() + self.assertEqual("pending", order.status) + + order.status = "open" + order.mark_dust_amount_remaining_order() self.assertEqual("closed_dust_remaining", order.status) @mock.patch.object(portfolio.Order, "fetch") -- cgit v1.2.3