Пример #1
0
 def test_invalid_url(self, options: Options):
     with pytest.raises(ValueError):
         options.url = "foo"
Пример #2
0
    def test_url_localhost(self, options: Options):
        options.url = "https://localhost"

        assert options.url == "https://localhost"
Пример #3
0
 def test_invalid_url_type(self, options: Options):
     with pytest.raises(TypeError):
         options.url = 42