... raise a ValueError exception. To test this we need to use pytest.raises(). Here is a test that expects validate_url() to raise a ValueError:
確定! 回上一頁