diff options
| author | stuppie | 2026-09-03 18:17:45 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-03 18:17:45 -0600 |
| commit | 131c73789ac97a577cab9f19813fea28869d8992 (patch) | |
| tree | af5bda39b388342c3e6b816070b94836540172ab /tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py | |
| parent | c9e1fc6839d8fc3ce145f65ad3c3c628af67626b (diff) | |
| download | generalresearch-131c73789ac97a577cab9f19813fea28869d8992.tar.gz generalresearch-131c73789ac97a577cab9f19813fea28869d8992.zip | |
fix tests in tests/managers/thl/test_ledger
Diffstat (limited to 'tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py')
| -rw-r--r-- | tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py b/tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py index 14c5270..643731c 100644 --- a/tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py +++ b/tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py @@ -203,7 +203,7 @@ class TestThlLedgerManagerBPPayout: # Test some basic assertions with caplog.at_level(logging.INFO), pytest.raises( - expected_exception=ValueError + expected_exception=LedgerTransactionConditionFailedError ): thl_ledger_manager.create_tx_bp_payout( product=product, @@ -390,9 +390,6 @@ class TestPayoutEventManagerBPPayout: product, rand_amount, now, direction=Direction.CREDIT ) assert thl_ledger_manager.get_account_balance(bp_wallet_account) == rand_amount - brokerage_product_payout_event_manager.set_account_lookup_table( - thl_lm=thl_ledger_manager - ) pe = brokerage_product_payout_event_manager.create_bp_payout_event( thl_ledger_manager=thl_ledger_manager, @@ -427,12 +424,9 @@ class TestPayoutEventManagerBPPayout: ) assert thl_ledger_manager.get_account_balance(bp_wallet_account) == 0 thl_ledger_manager.create_tx_plug_bp_wallet( - product=product, amount=rand_amount, now=now, direction=Direction.CREDIT + product=product, amount=rand_amount, created=now, direction=Direction.CREDIT ) assert thl_ledger_manager.get_account_balance(bp_wallet_account) == rand_amount - brokerage_product_payout_event_manager.set_account_lookup_table( - thl_lm=thl_ledger_manager - ) # Will fail on lock enter, no tx will actually get created Lock.acquire = broken_acquire @@ -552,9 +546,6 @@ class TestPayoutEventManagerBPPayout: bp_wallet_account = thl_ledger_manager.get_account_or_create_bp_wallet( product=product ) - brokerage_product_payout_event_manager.set_account_lookup_table( - thl_lm=thl_ledger_manager - ) assert thl_ledger_manager.get_account_balance(bp_wallet_account) == 0 thl_ledger_manager.create_tx_plug_bp_wallet( |
