aboutsummaryrefslogtreecommitdiff
path: root/test_utils/models/thl/conftest.py
diff options
context:
space:
mode:
authorstuppie2026-09-08 11:42:46 -0600
committerstuppie2026-09-08 11:42:46 -0600
commit70e2024b3b8abdf3965f59545aa35fda6270de1d (patch)
treee25cd8ec5ac74b301f0282ed5a6a359f3450c112 /test_utils/models/thl/conftest.py
parent7b2f48152109ed17b88886ce3a53fbdc3bedb0ac (diff)
downloadgeneralresearch-70e2024b3b8abdf3965f59545aa35fda6270de1d.tar.gz
generalresearch-70e2024b3b8abdf3965f59545aa35fda6270de1d.zip
user manager fixture add permissions; some stuff actually checks this. Add user and product fixture with failed attempt credit
Diffstat (limited to 'test_utils/models/thl/conftest.py')
-rw-r--r--test_utils/models/thl/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test_utils/models/thl/conftest.py b/test_utils/models/thl/conftest.py
index e09eadd..d20fdc4 100644
--- a/test_utils/models/thl/conftest.py
+++ b/test_utils/models/thl/conftest.py
@@ -700,6 +700,14 @@ def user_with_wallet_amt(
return user_factory(save=True, product=product_amt_true)
+@pytest.fixture
+def user_failed_attempt_credit(
+ user_factory: Callable[..., User], product_failed_attempt_credit: Product
+) -> User:
+ # A user on a product with user wallet enabled, failed_attempt_credit enabled
+ return user_factory(save=True, product=product_failed_attempt_credit)
+
+
# --- User Payout Event ---