aboutsummaryrefslogtreecommitdiff
path: root/tests/models
diff options
context:
space:
mode:
authorstuppie2026-10-07 16:06:09 -0600
committerstuppie2026-10-07 16:06:09 -0600
commitc106279852306b371c955f093cc6208fb19e6a31 (patch)
tree5fa0ea5b33d72ad7c30434b0c403c92b3d8cff56 /tests/models
parent7366bab8263759c932b1ef5d577b743cd2615741 (diff)
downloadgeneralresearch-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/models')
-rw-r--r--tests/models/thl/test_product.py11
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