diff options
author | uvok | 2025-04-17 18:42:26 +0200 |
---|---|---|
committer | uvok | 2025-04-17 18:42:26 +0200 |
commit | acedaf85eb6305e6dddf9aa6d318bfc7db289a72 (patch) | |
tree | 2bcb588cda05d196124846f0dc71840d28caed91 /test_kraken.py | |
parent | 9627c4426614d5ad9d57f56e93ba5c53e10ed387 (diff) |
Include full timestamp in LedgerAction
Diffstat (limited to 'test_kraken.py')
-rw-r--r-- | test_kraken.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test_kraken.py b/test_kraken.py index 7b3776a..8550003 100644 --- a/test_kraken.py +++ b/test_kraken.py @@ -24,7 +24,7 @@ class TestKrakenFunctions(unittest.TestCase): amount=Decimal("0.5"), fee=Decimal("0.001"), refid="12345", - date="2025-04-16", + timestamp="2025-04-16 12:00:00", ) self.assertEqual(parse_row(row), expected) @@ -41,7 +41,7 @@ class TestKrakenFunctions(unittest.TestCase): amount=Decimal("2.0"), fee=Decimal("0"), # Default fee refid="", # Default refid - date="2025-04-16", + timestamp="2025-04-16 15:00:00", ) self.assertEqual(parse_row(row), expected) @@ -58,7 +58,7 @@ class TestKrakenFunctions(unittest.TestCase): amount=Decimal("1.5"), fee=Decimal("0.01"), refid="67890", - date="2025-04-16", + timestamp="2025-04-16 09:00:00", ) ] self.assertEqual(read_ledger("dummy_path.csv"), expected) @@ -94,7 +94,7 @@ class TestKrakenFunctionsRealFiles(unittest.TestCase): amount=Decimal("1000.0000"), fee=Decimal("0"), refid="", - date="2024-07-01", + timestamp="2024-07-01 00:00:00", ), LedgerAction( type="trade", @@ -102,7 +102,7 @@ class TestKrakenFunctionsRealFiles(unittest.TestCase): amount=Decimal("-130.4204"), fee=Decimal("0"), refid="d1e57f", - date="2024-07-12", + timestamp="2024-07-12 16:26:22", ), LedgerAction( type="trade", @@ -110,7 +110,7 @@ class TestKrakenFunctionsRealFiles(unittest.TestCase): amount=Decimal("1321.95097670"), fee=Decimal("5.28780391"), refid="d1e57f", - date="2024-07-12", + timestamp="2024-07-12 16:26:22", ), LedgerAction( type="withdrawal", @@ -118,7 +118,7 @@ class TestKrakenFunctionsRealFiles(unittest.TestCase): amount=Decimal("-1312.66317279"), fee=Decimal("4.00000000"), refid="", - date="2024-07-12", + timestamp="2024-07-12 16:36:49", ), LedgerAction( type="deposit", @@ -126,7 +126,7 @@ class TestKrakenFunctionsRealFiles(unittest.TestCase): amount=Decimal("100.0000"), fee=Decimal("0"), refid="", - date="2024-08-02", + timestamp="2024-08-02 14:24:30", ), ] |