From 8d04f8cdc8f3c9a0b13b4e8684d3bf7dddea8b9c Mon Sep 17 00:00:00 2001 From: Philip Scheel Date: Tue, 4 Sep 2018 00:59:49 +0200 Subject: [PATCH] Fixed pylint complaints --- qutebrowser/completion/models/urlmodel.py | 3 ++- tests/unit/completion/test_models.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/qutebrowser/completion/models/urlmodel.py b/qutebrowser/completion/models/urlmodel.py index aeb83cd51..a92eb9618 100644 --- a/qutebrowser/completion/models/urlmodel.py +++ b/qutebrowser/completion/models/urlmodel.py @@ -51,7 +51,8 @@ def _delete_quickmark(data): def url(*, info): - """A model which combines bookmarks, quickmarks, search engines and web history URLs. + """A model which combines bookmarks, quickmarks, search engines and web + history URLs. Used for the `open` command. """ diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index 7cfc3d516..2b777795b 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -490,7 +490,7 @@ def test_url_completion(qtmodeltester, config_stub, web_history_populated, }) def test_search_only_default(qtmodeltester, config_stub, web_history_populated, - quickmarks, bookmarks, info): + quickmarks, bookmarks, info): """Test that Seardh engines is not shown when only default search engine is set in settings. Verify that: @@ -855,11 +855,12 @@ def test_setting_option_completion(qtmodeltester, config_stub, ('bindings.commands', 'Default keybindings', ( '{"normal": {"": "quit", "ZQ": "quit", ' '"I": "invalid", "d": "scroll down"}}')), - ('completion.open_categories', 'Which categories to show (in which order) in the :open completion.', '["searchengines", "quickmarks", "bookmarks", "history"]'), + ('completion.open_categories', 'Which categories to show (in which order) in the :open completion.', + '["searchengines", "quickmarks", "bookmarks", "history"]'), ('content.javascript.enabled', 'Enable/Disable JavaScript', 'true'), ('url.searchengines', 'searchengines list', - '{"DEFAULT": "https://duckduckgo.com/?q={}", "google": "https://google.com/?q={}"}'), + '{"DEFAULT": "https://duckduckgo.com/?q={}", "google": "https://google.com/?q={}"}'), ] })