diff options
author | Florian Bruhin <me@the-compiler.org> | 2018-09-06 20:04:11 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2018-09-06 20:08:32 +0200 |
commit | 4ca8fc0cb760dc7fd01774ad7aa3b9c9ca213b0b (patch) | |
tree | 4c31a124d849202c5db2f84feee696a0294bfc51 /tests/unit/completion/test_models.py | |
parent | ab6c8dde9a30b5d27233a06eb21979e64c4adf8c (diff) | |
download | qutebrowser-4ca8fc0cb760dc7fd01774ad7aa3b9c9ca213b0b.tar.gz qutebrowser-4ca8fc0cb760dc7fd01774ad7aa3b9c9ca213b0b.zip |
Use a shared web_history fixture
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r-- | tests/unit/completion/test_models.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index 5181cab6f..81cdfc19e 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -30,8 +30,7 @@ from PyQt5.QtCore import QUrl from qutebrowser.completion import completer from qutebrowser.completion.models import miscmodels, urlmodel, configmodel from qutebrowser.config import configdata, configtypes -from qutebrowser.utils import objreg, usertypes -from qutebrowser.browser import history +from qutebrowser.utils import usertypes from qutebrowser.commands import cmdutils @@ -169,17 +168,6 @@ def bookmarks(bookmark_manager_stub): @pytest.fixture -def web_history(init_sql, stubs, config_stub): - """Fixture which provides a web-history object.""" - config_stub.val.completion.timestamp_format = '%Y-%m-%d' - config_stub.val.completion.web_history.max_items = -1 - stub = history.WebHistory() - objreg.register('web-history', stub) - yield stub - objreg.delete('web-history') - - -@pytest.fixture def web_history_populated(web_history): """Pre-populate the web-history database.""" web_history.add_url( |