For example, you could have a “mock” folder, and in that folder, ... import pytest def test_raises(): with pytest.raises(ZeroDivisionError): 1 / 0.
確定! 回上一頁