AWS Exams GCP Exams Azure Exams GitHub Exams Jira Exams ISC2 Exams

Video: You are developing a REST API for an e-commerce github video

Question 1 Be Honest
« Back   Next copilot-gh-300 Certification Question »
Answer

Full Certification Question

You are developing a REST API for an e-commerce platform and need to implement unit tests for the product inventory endpoint using a test framework (e.g., pytest for Python). You're considering using GitHub Copilot to generate tests covering edge cases, such as when inventory is zero or when fetching a non-existent product. Which suggested test case would best ensure your API endpoint handles these edge cases?