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"))) 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): with pytest.raises(pac.EvalProxyError):
pac.PACResolver("") pac.PACResolver(string)
def test_fail_eval():
with pytest.raises(pac.EvalProxyError):
pac.PACResolver("{")
@pytest.mark.parametrize("value", [ @pytest.mark.parametrize("value", [