diff options
| author | stuppie | 2026-09-18 13:40:54 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-18 13:40:54 -0600 |
| commit | 438ea05fdb98c847d534ae190179b4766fa96f26 (patch) | |
| tree | 45dbe0d228ac2e3b715801c0b4b28e3d244b54c0 /tests/managers/thl/test_ledger | |
| parent | 1a98418317c115b92739639cf0b837bd974fc5d6 (diff) | |
| download | generalresearch-438ea05fdb98c847d534ae190179b4766fa96f26.tar.gz generalresearch-438ea05fdb98c847d534ae190179b4766fa96f26.zip | |
test user payout paypal and tango, and fix bugs
Diffstat (limited to 'tests/managers/thl/test_ledger')
| -rw-r--r-- | tests/managers/thl/test_ledger/test_thl_pem.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/managers/thl/test_ledger/test_thl_pem.py b/tests/managers/thl/test_ledger/test_thl_pem.py index 4761438..2d03b25 100644 --- a/tests/managers/thl/test_ledger/test_thl_pem.py +++ b/tests/managers/thl/test_ledger/test_thl_pem.py @@ -122,38 +122,6 @@ class TestThlPayoutEventManager: assert len(res) == (N_PRODUCTS * N_PAYOUT_EVENTS) assert sum([i.amount for i in res]) == sum(amounts) - @pytest.mark.skip - def test_get_payout_detail(self, user_payout_event_manager: UserPayoutEventManager): - """This fails because the description coming back is None, but then - it tries to return a PayoutEvent which validates that the - description can't be None - """ - from generalresearch.models.thl.payout import ( - PayoutType, - ) - - rand_amount = randint(a=99, b=999) - - pe = user_payout_event_manager.create( - debit_account_uuid=uuid4().hex, - account_reference_type="str-type-random", - account_reference_uuid=uuid4().hex, - cashout_method_uuid=uuid4().hex, - description="Best payout !", - amount=rand_amount, - status=PayoutStatus.PENDING, - ext_ref_id="123", - payout_type=PayoutType.CASH_IN_MAIL, - request_data={"foo": 123}, - order_data={}, - ) - - res = user_payout_event_manager.get_payout_detail(pe_uuid=pe.uuid) - assert isinstance(res, CashoutRequestInfo) - - # def test_filter_by(self): - # raise NotImplementedError - def test_create( self, user_payout_event_factory: Callable[..., UserPayoutEvent], |
