This mock can be shared across tests using a fixture : # contents of test_app.py, a simple test for our API retrieval import pytest import requests # app.py ...
確定! 回上一頁