You can just use patch directly (and something was off about your structure): from mock import patch, Mock import pytest # Here is some code ...
確定! 回上一頁