From 99c9b2d3963701fd598a7d036096c73183f778c6 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Wed, 22 Feb 2017 21:05:03 -0500 Subject: [PATCH] Fix two small mistakes after SQL code review. urlmodel is now sorted, so the test had to be adjusted. Also remove one unused import. --- tests/unit/completion/test_models.py | 2 +- tests/unit/completion/test_sqlmodel.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index ddc746aa6..b866e6439 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -297,7 +297,7 @@ def test_url_completion(qtmodeltester, config_stub, web_history, quickmarks, ('http://qutebrowser.org', 'qutebrowser | qutebrowser', None), ], "History": [ - ('http://qutebrowser.org', 'qutebrowser', '2015-09-05'), + ('https://github.com', 'https://github.com', '2016-05-01'), ('https://python.org', 'Welcome to Python.org', '2016-03-08'), ], }) diff --git a/tests/unit/completion/test_sqlmodel.py b/tests/unit/completion/test_sqlmodel.py index ab14bce75..49dc96ccf 100644 --- a/tests/unit/completion/test_sqlmodel.py +++ b/tests/unit/completion/test_sqlmodel.py @@ -20,7 +20,6 @@ """Tests for the base sql completion model.""" import pytest -from PyQt5.QtCore import Qt from qutebrowser.misc import sql from qutebrowser.completion.models import sqlmodel