Skip to content

test: restore and fix invoice deletion test - #703

Open
AshayK003 wants to merge 3 commits into
TreyWW:mainfrom
AshayK003:test/invoice-deletion
Open

test: restore and fix invoice deletion test#703
AshayK003 wants to merge 3 commits into
TreyWW:mainfrom
AshayK003:test/invoice-deletion

Conversation

@AshayK003

Copy link
Copy Markdown
Contributor

Restores the commented-out test_delete_works test in InvoicesAPIDelete. The original test was broken because it:\n\n1. Hardcoded invoice: 1 instead of using the actual created invoice ID\n2. Had orphaned commented-out lines after the test body\n\nThe fixed version creates an invoice with baker.make, captures its ID for the DELETE payload, and asserts both 200 status and actual deletion from the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant