def test_invalid_url(self, options: Options): with pytest.raises(ValueError): options.url = "foo"
def test_url_localhost(self, options: Options): options.url = "https://localhost" assert options.url == "https://localhost"
def test_invalid_url_type(self, options: Options): with pytest.raises(TypeError): options.url = 42