aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_ledger/test_thl_lm_bp_payout.py
diff options
context:
space:
mode:
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.py13
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(