Commit Graph
4 Commits
Author SHA1 Message Date
angelandClaude Sonnet 5 345e78753b reports: add test coverage for GetRawShopEvents
Covers the happy path (ordering by event_timestamp DESC/event_id ASC,
Platform/ShopID fields, RawPayload round-tripping through jsonb), the
empty-shop case, and the unknown-shop ErrNotFound case (via the
accts.GetMockShop check GetRawShopEvents does before querying).

setupAmazonMockShop creates a real account + Amazon mock shop via the
same Store methods the app uses (CreateAccount, CreateMockShop) and
registers cleanup in FK-safe order.

GetListingCountsOverTime/GetListingCountsReport coverage is a separate,
larger task (needs a listing plus count-changing history feeding a DB
view) - not done here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XEDaCB7C2NEBgyvqEtZuxY
2026-08-06 15:17:52 -06:00
angel c51ad80dc6 prototyped svg reports 2026-07-18 18:24:37 -06:00
angel b8de09bc00 bad logs 2026-03-03 18:54:00 -07:00
angel 9f42f97356 protoype: list raw events on mock mode reports page 2026-03-03 00:29:27 -07:00