diff options
| author | stuppie | 2026-08-17 16:14:21 -0600 |
|---|---|---|
| committer | stuppie | 2026-08-17 16:14:21 -0600 |
| commit | 254312c1cf91dcbf228944afd3932db8b5bde3a3 (patch) | |
| tree | b99ff9ce78296cb4cf08e79fefbed70228358fc9 /tests/models | |
| parent | 7ff0d6fddb333dd973a827805c0c0cdcded220c7 (diff) | |
| download | generalresearch-254312c1cf91dcbf228944afd3932db8b5bde3a3.tar.gz generalresearch-254312c1cf91dcbf228944afd3932db8b5bde3a3.zip | |
model gr business: prefetch_bp_accounts: During ledger account check, make any that dont exist instead of failingv3.3.9
Diffstat (limited to 'tests/models')
| -rw-r--r-- | tests/models/gr/test_business.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/models/gr/test_business.py b/tests/models/gr/test_business.py index 9a7718d..0b78374 100644 --- a/tests/models/gr/test_business.py +++ b/tests/models/gr/test_business.py @@ -134,7 +134,7 @@ class TestBusiness: assert "Not Loaded" in res2 business.prefetch_products(thl_pg_config=thl_web_rr) - business.prefetch_bp_accounts(lm=lm, thl_pg_config=thl_web_rr) + business.prefetch_bp_accounts(thl_lm=thl_lm, thl_pg_config=thl_web_rr) res3 = str(business) assert "Products: 2" in res3 assert "Ledger Accounts: 2" in res3 @@ -376,7 +376,7 @@ class TestBusiness: self, business, thl_web_rr, - lm, + thl_lm, mnt_filepath, client_no_amm, pop_ledger_merge, @@ -384,7 +384,7 @@ class TestBusiness: assert business.pop_financial is None business.prebuild_pop_financial( thl_pg_config=thl_web_rr, - lm=lm, + thl_lm=thl_lm, ds=mnt_filepath, client=client_no_amm, pop_ledger=pop_ledger_merge, @@ -393,7 +393,7 @@ class TestBusiness: def test_bp_accounts(self, business, lm, thl_web_rr, product_factory, thl_lm): assert business.bp_accounts is None - business.prefetch_bp_accounts(lm=lm, thl_pg_config=thl_web_rr) + business.prefetch_bp_accounts(thl_lm=thl_lm, thl_pg_config=thl_web_rr) assert business.bp_accounts == [] from generalresearch.models.thl.product import Product @@ -401,7 +401,7 @@ class TestBusiness: p1: Product = product_factory(business=business) thl_lm.get_account_or_create_bp_wallet(product=p1) - business.prefetch_bp_accounts(lm=lm, thl_pg_config=thl_web_rr) + business.prefetch_bp_accounts(thl_lm=thl_lm, thl_pg_config=thl_web_rr) assert len(business.bp_accounts) == 1 |
