stage 5 of 6 · try of no-docs

order-status

wrong

The shop's order status from Tern's (needs from the docs: D5 held)

Made
28 Nov 2026, 21:06 UTC
Model
claude-sonnet-5-5
Steps
7
Tool calls
5
Friction
2 flagged steps
Tokens read
152k
Time
14s
Cost
$0.040
Address
tern-docs/try/20261128-2029-qeh0/order-status
1quote-at-checkoutright2quote-optionswrong3book-shipmentwrong4sync-shipmentswrong5order-statuswrong6cancel-before-pickupwrong
This is the backend of Larkspur Tea, a small online tea shop. We ship with Tern, a parcel carrier. Tern's API documentation is at http://localhost:8080/ and Tern's sandbox API is running at http://localhost:8081 (the test key is already in `shop/settings.py`). Implement `order_status` in `shop/shipping.py`: given a Tern shipment id, return the status our order page should show the customer, one of the constants in `shop/orders.py`. Keep the shop's existing tests passing; add your own if you like.