This commit is contained in:
Daniel Schadt 2017-01-06 13:53:05 +01:00
parent 2986f7b615
commit bb135a00e6

View File

@ -989,6 +989,9 @@ def test_random_port():
class TestOpenFile:
def __init__(self):
self.open_url_called = False
def test_cmdline_without_argument(self, caplog, config_stub):
config_stub.data = {'general': {'default-open-dispatcher': ''}}
cmdline = '{} -c pass'.format(sys.executable)
@ -1015,7 +1018,6 @@ class TestOpenFile:
def test_system_default_application(self, caplog, config_stub,
monkeypatch):
self.open_url_called = False
config_stub.data = {'general': {'default-open-dispatcher': ''}}
monkeypatch.setattr('PyQt5.QtGui.QDesktopServices.openUrl',
self.mock_open_url)