summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-04-03 10:34:37 +0200
committerFlorian Bruhin <me@the-compiler.org>2019-04-03 10:34:37 +0200
commit217cfb519e16943aa90167bdbba7ed7ed9af23a6 (patch)
tree596844d098e1c8488ce31a297391b0e374152c5a /tests/unit/browser/test_history.py
parent03af6bb9b84b5472c531d7fdb7b55e7212bb7e80 (diff)
downloadqutebrowser-217cfb519e16943aa90167bdbba7ed7ed9af23a6.tar.gz
qutebrowser-217cfb519e16943aa90167bdbba7ed7ed9af23a6.zip
Remove Sql prefix for SqlKnownError and SqlBugError
We already have the sql module as namespace, no need to repeat it.
Diffstat (limited to 'tests/unit/browser/test_history.py')
-rw-r--r--tests/unit/browser/test_history.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/browser/test_history.py b/tests/unit/browser/test_history.py
index 08d9367ce..4e3120796 100644
--- a/tests/unit/browser/test_history.py
+++ b/tests/unit/browser/test_history.py
@@ -189,8 +189,8 @@ class TestAdd:
known_error, completion):
def raise_error(url, replace=False):
if known_error:
- raise sql.SqlKnownError("Error message")
- raise sql.SqlBugError("Error message")
+ raise sql.KnownError("Error message")
+ raise sql.BugError("Error message")
if completion:
monkeypatch.setattr(web_history.completion, 'insert', raise_error)
@@ -203,7 +203,7 @@ class TestAdd:
msg = message_mock.getmsg(usertypes.MessageLevel.error)
assert msg.text == "Failed to write history: Error message"
else:
- with pytest.raises(sql.SqlBugError):
+ with pytest.raises(sql.BugError):
web_history.add_url(QUrl('https://www.example.org/'))
@pytest.mark.parametrize('level, url, req_url, expected', [