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"]