summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-09-02 10:30:26 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-02 14:42:47 +0200
commitb0185e3c8ac5239ccecc692d4c8c5f3c88993a92 (patch)
tree702d4a15788a7785f598dabcecc38943bf67d8ba /tests/unit/browser/test_history.py
parentdbdeb6a9c7483d9b11ae4ee8be2b8b2222fce25e (diff)
downloadqutebrowser-b0185e3c8ac5239ccecc692d4c8c5f3c88993a92.tar.gz
qutebrowser-b0185e3c8ac5239ccecc692d4c8c5f3c88993a92.zip
Use config_stub.val instead of config_stub.set_obj in tests
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r--tests/unit/browser/test_history.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py
index 7c6d4af45..2f4827b0a 100644
--- a/tests/unit/browser/test_history.py
+++ b/tests/unit/browser/test_history.py
@@ -226,8 +226,7 @@ class TestAdd:
def test_exclude(self, hist, config_stub):
"""Excluded URLs should be in the history but not completion."""
- config_stub.set_obj('completion.web_history.exclude',
- ['*.example.org'])
+ config_stub.val.completion.web_history.exclude = ['*.example.org']
url = QUrl('http://www.example.org/')
hist.add_from_tab(url, url, 'title')
assert list(hist)
@@ -489,8 +488,7 @@ class TestRebuild:
This setting should only be used for the completion.
"""
- config_stub.set_obj('completion.web_history.exclude',
- ['*.example.org'])
+ config_stub.val.completion.web_history.exclude = ['*.example.org']
assert hist.metainfo['force_rebuild']
hist.add_url(QUrl('http://example.com'), redirect=False, atime=1)
@@ -500,7 +498,7 @@ class TestRebuild:
assert list(hist2.completion) == [('http://example.com', '', 1)]
def test_unrelated_config_change(self, config_stub, hist):
- config_stub.set_obj('history_gap_interval', 1234)
+ config_stub.val.history_gap_interval = 1234
assert not hist.metainfo['force_rebuild']