pytest allows you to use the standard python assert for verifying expectations ... You can check that code raises a particular warning using pytest.warns.
確定! 回上一頁