From bb135a00e6a714b91c47a76656e0dec982be3f0a Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 6 Jan 2017 13:53:05 +0100 Subject: [PATCH] fix lint --- tests/unit/utils/test_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/utils/test_utils.py b/tests/unit/utils/test_utils.py index c64d00e4d..a765cd977 100644 --- a/tests/unit/utils/test_utils.py +++ b/tests/unit/utils/test_utils.py @@ -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)