Add qapp to test_proxy_from_url_pac

This commit is contained in:
Florian Bruhin 2017-04-23 23:10:29 +02:00
parent 616a764b6d
commit a1de313aa3

View File

@ -765,7 +765,7 @@ class TestProxyFromUrl:
assert urlutils.proxy_from_url(QUrl(url)) == expected
@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)))
assert isinstance(fetcher, pac.PACFetcher)