From 12a81143a2790cd64cc677ee8a3c194e8c90c896 Mon Sep 17 00:00:00 2001 From: Yizhou Fan Date: Sun, 17 Nov 2024 21:31:49 +0900 Subject: [PATCH] Revert changes --- tests/test_trader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_trader.py b/tests/test_trader.py index 031a94e..ee8c4c4 100644 --- a/tests/test_trader.py +++ b/tests/test_trader.py @@ -14,7 +14,7 @@ def test_official_test_case(self): """ trader = Trader(TEST_DATA_PATH / "official.csv") trader.make_annual_reports() - self.assertEqual(trader.annual_reports[2020]["BTC/JPY"]["total_buy_amount"], 6.15) + self.assertEqual(trader.annual_reports[2020]["BTC/JPY"]["total_buy_amount"], 6.5) self.assertEqual(trader.annual_reports[2020]["BTC/JPY"]["total_buy_price_jpy"], 4_037_800) self.assertEqual(trader.annual_reports[2020]["BTC/JPY"]["average_buy_price_jpy"], 621_200) self.assertEqual(trader.annual_reports[2020]["BTC/JPY"]["total_sell_amount"], 5.0)