From c106279852306b371c955f093cc6208fb19e6a31 Mon Sep 17 00:00:00 2001 From: stuppie Date: Wed, 7 Oct 2026 16:06:09 -0600 Subject: Product: models for all cached fields (no lists). new method for bulk update of cached fields for a list of products --- tests/models/thl/test_product.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests/models') diff --git a/tests/models/thl/test_product.py b/tests/models/thl/test_product.py index ce3242e..f8f3da3 100644 --- a/tests/models/thl/test_product.py +++ b/tests/models/thl/test_product.py @@ -873,8 +873,7 @@ class TestProductFinancials: body, content_type = p1.balance.to_prometheus() - p1.prebuild_private_balance(thl_lm=thl_ledger_manager, pop_ledger_df=df) - assert p1.private_balance.commission == 5 * 2 + assert p1.balance.commission == 5 * 2 p1.prebuild_user_wallet_balances(pop_ledger_df=df) assert p1.user_wallet_balance.outstanding_liability == 38 * 2 @@ -952,15 +951,11 @@ class TestProductFinancials: p1.prebuild_balance(thl_lm=thl_ledger_manager, pop_ledger_df=df) assert p1.balance.payout == 95 - - p1.prebuild_private_balance(thl_lm=thl_ledger_manager, pop_ledger_df=df) - assert p1.private_balance.commission == 5 + assert p1.balance.commission == 5 p2.prebuild_balance(thl_lm=thl_ledger_manager, pop_ledger_df=df) assert p2.balance.payout == 57 - - p2.prebuild_private_balance(thl_lm=thl_ledger_manager, pop_ledger_df=df) - assert p2.private_balance.commission == 5 + assert p2.balance.commission == 5 p2.prebuild_user_wallet_balances(pop_ledger_df=df) assert p2.user_wallet_balance.outstanding_liability == 38 -- cgit v1.2.3