From 13e8d0a808ecd4e41ac3af9c217b8a8b291906f9 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Thu, 21 May 2026 07:26:24 +0200
Subject: [PATCH] fix tests
---
...test_accountingConnectorAbacus_balances.py | 27 +++++++++----------
1 file changed, 12 insertions(+), 15 deletions(-)
diff --git a/tests/unit/features/trustee/test_accountingConnectorAbacus_balances.py b/tests/unit/features/trustee/test_accountingConnectorAbacus_balances.py
index ad84e171..ae1a39ad 100644
--- a/tests/unit/features/trustee/test_accountingConnectorAbacus_balances.py
+++ b/tests/unit/features/trustee/test_accountingConnectorAbacus_balances.py
@@ -27,18 +27,16 @@ class TestAbacusGetAccountBalances:
rawEntries = [
{
- "Id": "e1", "JournalDate": "2025-01-15T00:00:00",
- "Lines": [
- {"AccountId": "1020", "DebitAmount": 1000.0, "CreditAmount": 0.0},
- {"AccountId": "6000", "DebitAmount": 0.0, "CreditAmount": 1000.0},
- ],
+ "Id": "e1", "Date": "2025-01-15T00:00:00",
+ "Amount": {"KeyAmount": 1000.0},
+ "Debit": {"AccountId": "1020"},
+ "Credit": {"AccountId": "6000"},
},
{
- "Id": "e2", "JournalDate": "2025-12-20T00:00:00",
- "Lines": [
- {"AccountId": "1020", "DebitAmount": 500.0, "CreditAmount": 0.0},
- {"AccountId": "6000", "DebitAmount": 0.0, "CreditAmount": 500.0},
- ],
+ "Id": "e2", "Date": "2025-12-20T00:00:00",
+ "Amount": {"KeyAmount": 500.0},
+ "Debit": {"AccountId": "1020"},
+ "Credit": {"AccountId": "6000"},
},
]
@@ -68,11 +66,10 @@ class TestAbacusGetAccountBalances:
rawEntries = [
{
- "Id": "e1", "JournalDate": "2024-06-30T00:00:00",
- "Lines": [
- {"AccountId": "1020", "DebitAmount": 7000.0, "CreditAmount": 0.0},
- {"AccountId": "9999", "DebitAmount": 0.0, "CreditAmount": 7000.0},
- ],
+ "Id": "e1", "Date": "2024-06-30T00:00:00",
+ "Amount": {"KeyAmount": 7000.0},
+ "Debit": {"AccountId": "1020"},
+ "Credit": {"AccountId": "9999"},
},
]