From eb9c92e155941b51042ba57e23f651454bd8e55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 24 Feb 2018 23:35:40 +0100 Subject: Add main running file and fetch information from database --- test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index 34b2fe3..fc331c3 100644 --- a/test.py +++ b/test.py @@ -1075,6 +1075,16 @@ class HelperTest(WebMockTestCase): follow_orders.assert_called() log_stage.assert_called_with("process_sell_all__2_all_buy_end") + def test_reset_all(self): + portfolio.BalanceStore.all = { "foo": "bar" } + portfolio.ReportStore.logs.append("hey") + portfolio.TradeStore.all.append("bouh") + + helper.reset_all() + + self.assertEqual(0, len(portfolio.BalanceStore.all)) + self.assertEqual(0, len(portfolio.ReportStore.logs)) + self.assertEqual(0, len(portfolio.TradeStore.all)) @unittest.skipUnless("unit" in limits, "Unit skipped") class TradeStoreTest(WebMockTestCase): -- cgit v1.2.3