When mocking, you need to specify the object to import to. Below, mock random in some_file with fake_random . tests/test_some_file.py. import pytest import ...
確定! 回上一頁