From 05dd8cbbc8eb9750ce813adb9137f47d98d19cdb Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 14:30:31 +0000 Subject: [PATCH] Use the returned market id for the dependant account --- tests/test_tax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_tax.py b/tests/test_tax.py index 85c9c05..11de333 100644 --- a/tests/test_tax.py +++ b/tests/test_tax.py @@ -175,10 +175,10 @@ class TaxTestCase(unittest.TestCase): def test_custody_totals_sum_the_custodian_and_its_dependants(self): exchange = create_market("Børs_01") - create_market("Barn", kind="other", taxable=0, custody_market_id=exchange) + child = create_market("Barn", kind="other", taxable=0, custody_market_id=exchange) create_transaction(market_id=exchange, date="2024-01-10", leg_in_sats=150000000, leg_in_ore=30000000) - create_transaction(market_id=2, date="2024-01-10", + create_transaction(market_id=child, date="2024-01-10", leg_in_sats=50000000, leg_in_ore=10000000) ledger.rebuild() rows = tax.report(2024)["custody_totals"]