diff options
| author | stuppie | 2026-09-07 11:12:04 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-07 11:12:04 -0600 |
| commit | 3338f74a94d0624bf894ebb35bd1bcfca268216e (patch) | |
| tree | 17c01719cde989d9b6f65ed86580332046f23dad /test_utils/models/thl | |
| parent | 9002e4ea94ce790210ce42f4950a9e63ee8ca27b (diff) | |
| download | generalresearch-3338f74a94d0624bf894ebb35bd1bcfca268216e.tar.gz generalresearch-3338f74a94d0624bf894ebb35bd1bcfca268216e.zip | |
fix more tests. Fix survey score optional field
Diffstat (limited to 'test_utils/models/thl')
| -rw-r--r-- | test_utils/models/thl/conftest.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test_utils/models/thl/conftest.py b/test_utils/models/thl/conftest.py index 376891c..e09eadd 100644 --- a/test_utils/models/thl/conftest.py +++ b/test_utils/models/thl/conftest.py @@ -14,7 +14,10 @@ from grip_client.enums import AccessType from pydantic import PositiveInt from generalresearch.currency import USDCent -from generalresearch.managers.thl.payout import UserPayoutEventManager +from generalresearch.managers.thl.payout import ( + BusinessPayoutEventManager, + UserPayoutEventManager, +) from generalresearch.models.custom_types import ( AwareDatetimeISO, IPvAnyAddressStr, @@ -38,9 +41,6 @@ if TYPE_CHECKING: IPInformationManager, ) from generalresearch.managers.thl.ledger_manager.thl_ledger import ThlLedgerManager - from generalresearch.managers.thl.payout import ( - BrokerageProductPayoutEventManager, - ) from generalresearch.managers.thl.product import ProductManager from generalresearch.managers.thl.session import SessionManager from generalresearch.managers.thl.user_manager.user_manager import UserManager @@ -777,7 +777,7 @@ def unsaved_user_payout_event( @pytest.fixture def brokerage_product_payout_event_factory( thl_ledger_manager: ThlLedgerManager, - brokerage_product_payout_event_manager: BrokerageProductPayoutEventManager, + business_payout_event_manager: BusinessPayoutEventManager, product_factory: Callable[..., Product], ) -> Callable[..., BrokerageProductPayoutEvent]: @@ -791,7 +791,7 @@ def brokerage_product_payout_event_factory( product = product or product_factory() amount = amount or USDCent(randint(1, 99_99)) - return brokerage_product_payout_event_manager.create_bp_payout_event( + return business_payout_event_manager.create_bp_payout_event( thl_ledger_manager=thl_ledger_manager, product=product, amount=amount, |
