2026-04-27 10:53:03.756764+08
Act as a Senior QA Engineer. Review this Python function and write a comprehensive suite of unit tests using `pytest`. Demonstrate how to use "fixtures" for setup/teardown and how to "mock" external API calls to ensure the tests are fast and isolated.