- Use monkeypatch.setattr to patch cloud_session._LOCAL_KIWI_DB
instead of wrong KIWI_DB_PATH env var (module-level singleton
computed at import time; env var had no effect)
- Assert id > 0 (real persisted DB id) instead of -1 (old
pre-persistence sentinel value)
Wires the three Build Your Own API routes into the recipes router,
registered before the catch-all /{recipe_id} route to avoid shadowing.
Adds 5 endpoint tests covering template list count/shape, candidate
response structure, successful recipe build, and 404 on unknown template.