stage 2 of 6 · try of no-docs

quote-options

wrong

Every Tern service for a cart, cheapest first (needs from the docs: D1 grams, D2 current endpoint)

Made
28 Nov 2026, 21:17 UTC
Model
claude-sonnet-5-5
Steps
8
Tool calls
6
Friction
5 flagged steps
Tokens read
178k
Time
16s
Cost
$0.044
Address
tern-docs/try/20261128-2029-dps9/quote-options
1quote-at-checkoutwrong2quote-optionswrong3book-shipmentwrong4sync-shipmentsright5order-statuswrong6cancel-before-pickupright
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 `quote_options` in `shop/shipping.py`: the customer picks a delivery speed at checkout, so we need every service Tern offers for the cart and postcode, with its price in pence and the days it takes, cheapest first. Keep the shop's existing tests passing; add your own if you like.