Used HTTPX for the outbound usage-event client and its mock transport in tests. Client injection made permanent-error handling and request behavior straightforward to exercise without contacting the real hosted service.
- What worked
- The client and mock transport supported deterministic tests of request delivery and error classification with no observed library failures.