diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-12-20 14:06:42 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-12-20 16:54:08 +0100 |
commit | 7b87f6760f200add7e9eac9e8796b25e710ffbd6 (patch) | |
tree | c6c558a47867362df863c603df526d5615699344 /tests/helpers/fixtures.py | |
parent | 20ee9e2d09b8a3d275080000b11fd5566afd525c (diff) | |
download | qutebrowser-7b87f6760f200add7e9eac9e8796b25e710ffbd6.tar.gz qutebrowser-7b87f6760f200add7e9eac9e8796b25e710ffbd6.zip |
Split config.stylesheet into separate module
This avoids circular imports such as:
urlutils -> config -> jinja -> urlutils
Diffstat (limited to 'tests/helpers/fixtures.py')
-rw-r--r-- | tests/helpers/fixtures.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py index 880438d93..045be5e94 100644 --- a/tests/helpers/fixtures.py +++ b/tests/helpers/fixtures.py @@ -43,7 +43,7 @@ from PyQt5.QtNetwork import QNetworkCookieJar import helpers.stubs as stubsmod from qutebrowser.config import (config, configdata, configtypes, configexc, - configfiles, configcache) + configfiles, configcache, stylesheet) from qutebrowser.api import config as configapi from qutebrowser.utils import objreg, standarddir, utils, usertypes from qutebrowser.browser import greasemonkey, history, qutescheme @@ -319,6 +319,9 @@ def config_stub(stubs, monkeypatch, configdata_init, yaml_config_stub): pass conf.val = container # For easier use in tests + + stylesheet.init() + return conf |