summaryrefslogtreecommitdiff
path: root/test_trade.py
diff options
context:
space:
mode:
authoruvok2025-04-18 19:24:55 +0200
committeruvok2025-04-18 19:24:55 +0200
commitf486114d6e029e1ecb4130351d7792e0925b8bcd (patch)
treecb6f97a3933fd8456e5922afc81ccdf0882a7ad0 /test_trade.py
parent0035d403ec4b62e24290eebf25df4ef710de112e (diff)
Trade needs timestamp
for sorting
Diffstat (limited to 'test_trade.py')
-rw-r--r--test_trade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_trade.py b/test_trade.py
index 8cbf0f4..4fc9c01 100644
--- a/test_trade.py
+++ b/test_trade.py
@@ -9,7 +9,7 @@ class TestTrade(unittest.TestCase):
"""
Set up a Trade instance for testing.
"""
- self.trade = Trade(amount=Decimal(10.0), total_cost=Decimal(100.0), date="2025-04-14", refid="abcd1234")
+ self.trade = Trade(amount=Decimal(10.0), total_cost=Decimal(100.0), timestamp="2025-04-14 00:00:00", refid="abcd1234")
def test_initialization(self):
"""