Ship it · Project 2
Make it
ship: tickets.py
Fix the real file until every test passes. The tests run in your browser, so nothing you type leaves this page.
Project 2 · Trusted Data API
Northwind's AI layer posts tickets through this trust boundary. Bad payloads must die here — empty owners, unknown priorities, extra fields, and wrong types never reach Postgres. Fix validate_ticket until every test passes.
0 of 5 parts built. The tests check the same ideas.
What the tests check
- ·Accepts a clean ticket
- ·Rejects an empty or missing owner
- ·Rejects a blank title
- ·Rejects an unknown priority
- ·Rejects unexpected fields
- ·Rejects wrong types
- ·Names the field that failed
tickets.py
First load takes a few seconds.