diff options
| author | stuppie | 2026-10-07 16:06:09 -0600 |
|---|---|---|
| committer | stuppie | 2026-10-07 16:06:09 -0600 |
| commit | c106279852306b371c955f093cc6208fb19e6a31 (patch) | |
| tree | 5fa0ea5b33d72ad7c30434b0c403c92b3d8cff56 /tests | |
| parent | 7366bab8263759c932b1ef5d577b743cd2615741 (diff) | |
| download | generalresearch-c106279852306b371c955f093cc6208fb19e6a31.tar.gz generalresearch-c106279852306b371c955f093cc6208fb19e6a31.zip | |
Product: models for all cached fields (no lists). new method for bulk update of cached fields for a list of products
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/models/thl/test_product.py | 11 |
1 files changed, 3 insertions, 8 deletions
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 |
