Video upload date:  · Duration: PT1H46M27S  · Language: EN

You are a Python developer looking to improve github video

copilot-gh-300 video for you are a Python developer looking to improve unit test coverage using GitHub Copilot. You’ve implemented a function,

This is a dedicated watch page for a single video.

Full Certification Question

You are a Python developer looking to improve unit test coverage using GitHub Copilot. You’ve implemented a function, calculate_discount(price, discount_rate) , which calculates the discount for a product price, but have not written tests for it yet. You decide to use GitHub Copilot to generate test cases in a separate test file. Which test case suggestion generated by Copilot is most appropriate for testing the function under various conditions? def calculate_discount ( price , discount_rate ): return price - ( price * discount_rate )