How can i use pytest to write test cases for network exceptions in python-requests?

前端 未结 0 1852
情深已故
情深已故 2020-11-29 14:36

am learning pytest and I wanted to know how can I write a test case for every exception in the try/except block. This functions takes response a parameter from "request

相关标签:
回答
  • 消灭零回复
提交回复
热议问题