diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index 2a7e61e27..66176b6ac 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -26,8 +26,7 @@ import pytest from PyQt5.QtCore import QObject, QUrl from PyQt5.QtGui import QColor -from qutebrowser.config import (config, configdata, configexc, configfiles, - configutils) +from qutebrowser.config import config, configdata, configexc, configutils from qutebrowser.utils import usertypes, urlmatch from qutebrowser.misc import objects @@ -417,7 +416,6 @@ class TestConfig: conf.set_obj(name, False, pattern=pattern) assert conf.get(name, url=QUrl('https://example.com/')) is True - @pytest.mark.parametrize('value', [{}, {'normal': {'a': 'nop'}}]) def test_get_bindings(self, config_stub, conf, value): """Test conf.get() with bindings which have missing keys.""" diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index d9d030501..d7d0b6173 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -27,7 +27,7 @@ import pytest from PyQt5.QtCore import QSettings from qutebrowser.config import (config, configfiles, configexc, configdata, - configtypes, configutils) + configtypes) from qutebrowser.utils import utils, usertypes diff --git a/tests/unit/config/test_configutils.py b/tests/unit/config/test_configutils.py index af90b760c..ef91b13ee 100644 --- a/tests/unit/config/test_configutils.py +++ b/tests/unit/config/test_configutils.py @@ -40,6 +40,7 @@ def opt(): default='default value', backends=None, raw_backends=None, description=None) + @pytest.fixture def pattern(): return urlmatch.UrlPattern('*://www.example.com/')