aboutsummaryrefslogtreecommitdiff
path: root/test_utils/managers/conftest.py
diff options
context:
space:
mode:
authorstuppie2026-09-18 13:40:54 -0600
committerstuppie2026-09-18 13:40:54 -0600
commit438ea05fdb98c847d534ae190179b4766fa96f26 (patch)
tree45dbe0d228ac2e3b715801c0b4b28e3d244b54c0 /test_utils/managers/conftest.py
parent1a98418317c115b92739639cf0b837bd974fc5d6 (diff)
downloadgeneralresearch-438ea05fdb98c847d534ae190179b4766fa96f26.tar.gz
generalresearch-438ea05fdb98c847d534ae190179b4766fa96f26.zip
test user payout paypal and tango, and fix bugs
Diffstat (limited to 'test_utils/managers/conftest.py')
-rw-r--r--test_utils/managers/conftest.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/test_utils/managers/conftest.py b/test_utils/managers/conftest.py
index 72be79e..a9f92a2 100644
--- a/test_utils/managers/conftest.py
+++ b/test_utils/managers/conftest.py
@@ -25,7 +25,6 @@ from generalresearch.managers.thl.user_streak import (
)
from generalresearch.managers.thl.userhealth import (
AuditLogManager,
- IPRecordManager,
UserIpHistoryManager,
)
from generalresearch.models.definitions import Source
@@ -57,24 +56,6 @@ def audit_log_manager(thl_web_rw: PostgresConfig) -> AuditLogManager:
@pytest.fixture
-def ip_record_manager(
- thl_web_rw: PostgresConfig,
- thl_redis_config: RedisConfig,
- geoip_info_manager: GeoIpInfoManager,
-) -> IPRecordManager:
- assert thl_web_rw.dsn.path
- assert "/unittest-" in thl_web_rw.dsn.path
-
- from generalresearch.managers.thl.userhealth import IPRecordManager
-
- return IPRecordManager(
- pg_config=thl_web_rw,
- redis_config=thl_redis_config,
- geoip_info_manager=geoip_info_manager,
- )
-
-
-@pytest.fixture
def user_iphistory_manager(
thl_web_rw: PostgresConfig,
thl_redis_config: RedisConfig,
@@ -124,6 +105,11 @@ def grip_lookup_results() -> dict[str, GRIPMMDBLookupResult]:
network_operator="Cloudflare",
),
),
+ "2.2.2.2": GRIPMMDBLookupResult(
+ country=GRIPCountryRecord(country_iso="IT"),
+ anonymous=GRIPAnonymousRecord(is_anonymous=False),
+ asn=GRIPAsnRecord(),
+ ),
},
)
@@ -214,7 +200,6 @@ def random_ext_id_factory(base: str = "U02") -> Callable[..., str]:
@pytest.fixture(scope="session")
def example_tango_cashout_methods(
- random_ext_id_factory: Callable[..., str],
) -> list[CashoutMethod]:
return [
CashoutMethod(