Fix 2 pre-existing failing tests on main (payment_recovery enum + first_payment subject) #434
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#434
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Bug
Lineage
Standalone — discovered during 2026-04-10 Westside Ops session while investigating CI failures on PRs #426 and #427. Both PRs showed red CI, but investigation revealed the failures were pre-existing on main itself (pipelines 429, 430, 431, 432, 433 all fail with the same 2 tests). Prior PRs #397 and #417 landed without updating these tests, relying on the "deploy anyway" behavior from commit 1d54939.
Repo
forgejo_admin/basketball-apiWhat Broke
Two hardcoded-assertion tests on
mainare out of date and have been failing since commits that added new features but forgot to update the tests:Test 1:
tests/test_templated_email.py::TestEmailTypeEnumValues::test_all_expected_valuesexpectedset of EmailType enum membersEmailTypeenum on main now includes'payment_recovery'(added in PR #397 feat: payment recovery for abandoned Stripe registrations)expectedset does NOT include'payment_recovery', so the assertionexpected == actualfailsTest 2:
tests/test_first_payment_email.py::test_send_first_payment_email'Great First Practice' in subjecton the generated subject line'Your First Monthly Payment | Westside Kings & Queens'(changed in PR #417 fix: neutral subject line for first-payment email)Both failures are assertion-updates-needed, not broken functionality. The features they test are working correctly in production.
Repro Steps
origin/main(commit9598c4dor later)pytest tests/test_templated_email.py::TestEmailTypeEnumValues::test_all_expected_values tests/test_first_payment_email.py::test_send_first_payment_emailAlternatively view pipeline 431 (push on main) at Woodpecker: both failures visible in the
teststep output.Expected Behavior
Both tests should pass with the current production behavior. Specifically:
test_all_expected_valuesshould include'payment_recovery'in its expected settest_send_first_payment_emailshould assert a string that actually appears in the new subject lineEnvironment
origin/mainat9598c4dor laterdeploy anywaybehavior from commit 1d54939 (PR #275) means this does NOT block deploys, only CI status badgesAcceptance Criteria
tests/test_templated_email.py::TestEmailTypeEnumValues::test_all_expected_valuespasses — add'payment_recovery'to the expected settests/test_first_payment_email.py::test_send_first_payment_emailpasses — update the subject assertion to match the current phrasepytestrun onmainshows0 failedin the final summaryteststepRelated
westside-basketball— project this affects