To test the retrieve_weather function, you can then mock requests.get and return static data. pytest-mock. For this tutorial, you'll use pytest ...
確定! 回上一頁