Below, mock random in some_file with fake_random . tests/test_some_file.py. import pytest import some_file def fake_random(): return 1 class TestA: def test_01( ...
確定! 回上一頁