fix: update 9 tests after opt_out jersey option removal #315
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api!315
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "310-fix-opt-out-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
PR #265 removed
opt_outas a valid jersey option but 9 tests still sentopt_out, causing 422 errors that block CI and prevent 6 merged PRs from deploying.Changes
tests/test_jersey.py— 3 tests inTestPlayerIdJerseyCheckout: changed from"option": "opt_out"to"option": "reversible"with Stripe mocks and size/number fields. Assertions updated fromsuccess is Truetocheckout_urlverification.tests/test_checkout.py— 3 tests inTestPlayerIdCheckoutCreateSession: changed from jersey opt-out product to a newequipment_opt_out_productfixture (non-jersey category, so the jersey opt-out block doesn't fire). Added fixture.tests/test_dual_auth.py— 2 jersey checkout tests: changed to"reversible"with Stripe mocks. 1 checkout create-session test: changedopt_out_productfixture fromProductCategory.jerseytoProductCategory.equipment.Test Plan
pytest tests/test_checkout.py tests/test_dual_auth.py tests/test_jersey.py -v— 95 passed, 0 failedReview Checklist
Related Notes
None -- standalone bug fix.
Related