Simplify test

This commit is contained in:
Florian Bruhin 2017-02-04 18:10:34 +01:00
parent 660e3915a1
commit 0cc7f845e6

View File

@ -125,14 +125,10 @@ def test_invalid_port():
res.resolve(QNetworkProxyQuery(QUrl("https://example.com/test")))
def test_no_function():
@pytest.mark.parametrize(string, ["", "{"])
def test_wrong_pac_string(string):
with pytest.raises(pac.EvalProxyError):
pac.PACResolver("")
def test_fail_eval():
with pytest.raises(pac.EvalProxyError):
pac.PACResolver("{")
pac.PACResolver(string)
@pytest.mark.parametrize("value", [