Simplify test
This commit is contained in:
parent
660e3915a1
commit
0cc7f845e6
@ -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", [
|
||||||
|
Loading…
Reference in New Issue
Block a user