aboutsummaryrefslogtreecommitdiff
path: root/test_utils/managers/cashout_methods.py
diff options
context:
space:
mode:
authorstuppie2026-09-06 18:42:11 -0600
committerstuppie2026-09-06 18:42:11 -0600
commit282e224429516efbf00f6c876bfbb82be00bb266 (patch)
tree9ef8cf8c5174409f634fc1bd519f93a30b8461ce /test_utils/managers/cashout_methods.py
parent5d20e51ba4149b9ba04f6a70de4f6c8ff0425fc3 (diff)
downloadgeneralresearch-282e224429516efbf00f6c876bfbb82be00bb266.tar.gz
generalresearch-282e224429516efbf00f6c876bfbb82be00bb266.zip
user cashout method to user UserRef
Diffstat (limited to 'test_utils/managers/cashout_methods.py')
-rw-r--r--test_utils/managers/cashout_methods.py90
1 files changed, 0 insertions, 90 deletions
diff --git a/test_utils/managers/cashout_methods.py b/test_utils/managers/cashout_methods.py
index adf82f4..e69de29 100644
--- a/test_utils/managers/cashout_methods.py
+++ b/test_utils/managers/cashout_methods.py
@@ -1,90 +0,0 @@
-from __future__ import annotations
-
-import random
-from collections.abc import Callable
-from uuid import uuid4
-
-import pytest
-
-from generalresearch.models.thl.wallet.cashout_method import (
- CashoutMethod,
- TangoCashoutMethodData,
-)
-from generalresearch.models.thl.wallet.definitions import Currency, PayoutType
-
-
-@pytest.fixture(scope="session")
-def random_ext_id_factory(base: str = "U02") -> Callable[..., str]:
-
- def _inner() -> str:
- suffix = random.randint(0, 99999)
- return f"{base}{suffix:05d}"
-
- return _inner
-
-
-@pytest.fixture(scope="session")
-def example_tango_cashout_methods(
- random_ext_id_factory: Callable[..., str],
-) -> list[CashoutMethod]:
- return [
- CashoutMethod(
- id=uuid4().hex,
- last_updated="2021-06-23T20:45:38.239182Z",
- is_live=True,
- type=PayoutType.TANGO,
- ext_id=random_ext_id_factory(),
- name="Safeway eGift Card $25",
- data=TangoCashoutMethodData(
- value_type="fixed", countries=["US"], utid=random_ext_id_factory()
- ),
- user=None,
- image_url="https://d30s7yzk2az89n.cloudfront.net/images/brands/b694446-1200w-326ppi.png",
- original_currency=Currency.USD,
- min_value=2500,
- max_value=2500,
- ),
- CashoutMethod(
- id=uuid4().hex,
- last_updated="2021-06-23T20:45:38.239182Z",
- is_live=True,
- type=PayoutType.TANGO,
- ext_id=random_ext_id_factory(),
- name="Amazon.it Gift Certificate",
- data=TangoCashoutMethodData(
- value_type="variable", countries=["IT"], utid="U006961"
- ),
- user=None,
- image_url="https://d30s7yzk2az89n.cloudfront.net/images/brands/b405753-1200w-326ppi.png",
- original_currency=Currency.EUR,
- min_value=1,
- max_value=10000,
- ),
- ]
-
-
-# AMT_ASSIGNMENT_CASHOUT_METHOD = CashoutMethod(
-# id=uuid4().hex,
-# last_updated="2021-06-23T20:45:38.239182Z",
-# is_live=True,
-# type=PayoutType.AMT,
-# ext_id=None,
-# name="AMT Assignment",
-# data=AmtCashoutMethodData(),
-# user=None,
-# min_value=1,
-# max_value=5,
-# )
-
-# AMT_BONUS_CASHOUT_METHOD = CashoutMethod(
-# id=uuid4().hex,
-# last_updated="2021-06-23T20:45:38.239182Z",
-# is_live=True,
-# type=PayoutType.AMT,
-# ext_id=None,
-# name="AMT Bonus",
-# data=AmtCashoutMethodData(),
-# user=None,
-# min_value=7,
-# max_value=4000,
-# )