Add qapp to test_proxy_from_url_pac
This commit is contained in:
parent
616a764b6d
commit
a1de313aa3
@ -765,7 +765,7 @@ class TestProxyFromUrl:
|
|||||||
assert urlutils.proxy_from_url(QUrl(url)) == expected
|
assert urlutils.proxy_from_url(QUrl(url)) == expected
|
||||||
|
|
||||||
@pytest.mark.parametrize('scheme', ['pac+http', 'pac+https'])
|
@pytest.mark.parametrize('scheme', ['pac+http', 'pac+https'])
|
||||||
def test_proxy_from_url_pac(self, scheme):
|
def test_proxy_from_url_pac(self, scheme, qapp):
|
||||||
fetcher = urlutils.proxy_from_url(QUrl('{}://foo'.format(scheme)))
|
fetcher = urlutils.proxy_from_url(QUrl('{}://foo'.format(scheme)))
|
||||||
assert isinstance(fetcher, pac.PACFetcher)
|
assert isinstance(fetcher, pac.PACFetcher)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user