diff options
| author | Greg Stupp | 2026-10-23 03:20:59 +0000 |
|---|---|---|
| committer | Greg Stupp | 2026-10-23 03:20:59 +0000 |
| commit | af5c3e97a8afb31f5219d4cdd9d752b7f2b2aa3b (patch) | |
| tree | cd182fdd65de736cb9c93a59bc40f1e1e2360dde /tests/managers/thl/test_ledger/test_thl_pem.py | |
| parent | 292860a9569e08f9f58c49802ee1f25cd39f9be1 (diff) | |
| parent | 45d66cd40d409a8a05c8dde7193f1e8469058fff (diff) | |
| download | generalresearch-af5c3e97a8afb31f5219d4cdd9d752b7f2b2aa3b.tar.gz generalresearch-af5c3e97a8afb31f5219d4cdd9d752b7f2b2aa3b.zip | |
virtual incentives and BrokerageProductLedgerTransaction
Diffstat (limited to 'tests/managers/thl/test_ledger/test_thl_pem.py')
| -rw-r--r-- | tests/managers/thl/test_ledger/test_thl_pem.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/managers/thl/test_ledger/test_thl_pem.py b/tests/managers/thl/test_ledger/test_thl_pem.py index ddf9bc9..3d6fa87 100644 --- a/tests/managers/thl/test_ledger/test_thl_pem.py +++ b/tests/managers/thl/test_ledger/test_thl_pem.py @@ -11,6 +11,7 @@ from generalresearch.currency import USDCent from generalresearch.models.thl.payout import ( BrokerageProductPayoutEvent, ) +from generalresearch.models.thl.user import User if TYPE_CHECKING: from generalresearch.managers.thl.ledger_manager.ledger import LedgerManager @@ -135,11 +136,12 @@ class TestThlPayoutEventManager: self, user_payout_event_factory: Callable[..., UserPayoutEvent], user_payout_event_manager: UserPayoutEventManager, + user: User ): from generalresearch.models.thl.payout import UserPayoutEvent # Confirm the creation method returns back an instance. - pe = user_payout_event_factory() + pe = user_payout_event_factory(user=user) assert isinstance(pe, UserPayoutEvent) # Now query the DB for that PayoutEvent to confirm it was actually |
