diff options
Diffstat (limited to 'tests/managers/thl')
| -rw-r--r-- | tests/managers/thl/test_cashout_method.py | 31 | ||||
| -rw-r--r-- | tests/managers/thl/test_ipinfo.py | 4 |
2 files changed, 2 insertions, 33 deletions
diff --git a/tests/managers/thl/test_cashout_method.py b/tests/managers/thl/test_cashout_method.py index 877d7b2..fc364f2 100644 --- a/tests/managers/thl/test_cashout_method.py +++ b/tests/managers/thl/test_cashout_method.py @@ -51,37 +51,6 @@ class TestTangoCashoutMethods: assert len(res) == 2 -class TestAMTCashoutMethods: - - def test_create_and_get( - self, - settings: GRLBaseSettings, - cashout_method_manager: CashoutMethodManager, - setup_cashoutmethod_db: Callable[..., None], - ): - setup_cashoutmethod_db() - - res = cashout_method_manager.filter(payout_types=[PayoutType.AMT]) - assert len(res) == 2 - - cm = next(x for x in res if x.name == "AMT Assignment") - assert settings.amt_assignment_cashout_method_id == cm - - cm = next(x for x in res if x.name == "AMT Bonus") - assert settings.amt_bonus_cashout_method_id == cm - - def test_user( - self, - cashout_method_manager: CashoutMethodManager, - user_with_wallet_amt: User, - setup_cashoutmethod_db: Callable[..., None], - ): - setup_cashoutmethod_db() - - res = cashout_method_manager.get_cashout_methods(user_with_wallet_amt) - # This user has the 2 tango, plus amt bonus & assignment - assert len(res) == 4 - class TestUserCashoutMethods: diff --git a/tests/managers/thl/test_ipinfo.py b/tests/managers/thl/test_ipinfo.py index 47b1712..c021eb9 100644 --- a/tests/managers/thl/test_ipinfo.py +++ b/tests/managers/thl/test_ipinfo.py @@ -55,10 +55,10 @@ class TestIPInformationManager: def test_create( self, - ip_geoname_factory: Callable[..., IPGeoname], + ip_information_factory: Callable[..., IPInformation], ip_information_manager: IPInformationManager, ): - instance = ip_geoname_factory() + instance = ip_information_factory() assert isinstance(instance, IPInformation) res = ip_information_manager.fetch_ip_information(filter_ips=[instance.ip]) |
