fix: test fixture collision between jersey fields and player detail assertions #252
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
ldraney/basketball-api#252
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 CI pipeline #254 failure after merging PRs #250 and #251.
Repo
forgejo_admin/basketball-apiWhat Broke
CI pipeline #254 fails with:
PR #250 added jersey fields to the
populated_dbfixture, settingjersey_order_status=JerseyOrderStatus.paidon player1. PR #251 added the player detail endpoint test assertingjersey_order_status == "none"for the same player. Each PR passed individually but collide when merged together.Repro Steps
pytest tests/test_admin_spa.py::TestAdminPlayerDetail::test_returns_player_detail -vjersey_order_statusis"paid"(from fixture) but test expects"none"Expected Behavior
The detail test should assert
jersey_order_status == "paid"to match what thepopulated_dbfixture actually sets for player1. All tests intest_admin_spa.pyshould pass.Environment
Acceptance Criteria
pytest tests/test_admin_spa.py -vpasses with no failurespopulated_dbfixture stateRelated
forgejo_admin/basketball-api #250— PR that added jersey fields to fixtureforgejo_admin/basketball-api #251— PR that added player detail endpoint with wrong assertion