Shows how to use pytest.raises(Exception) to verify the code raises ... When the code doesn't raise an exception, you'll see a test failed ...
確定! 回上一頁