summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_models.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-09-10 11:40:02 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-09-10 11:40:02 +0200
commit21570b423ea4bb74c373993a5b5f66de5a4eef81 (patch)
treebdbb6113260c31eb9c852c068a8767a9f32f46b2 /tests/unit/completion/test_models.py
parenta21b6d2af545de63bfb6bc478d534ddae4f16132 (diff)
downloadqutebrowser-21570b423ea4bb74c373993a5b5f66de5a4eef81.tar.gz
qutebrowser-21570b423ea4bb74c373993a5b5f66de5a4eef81.zip
Add third column to :help completion
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r--tests/unit/completion/test_models.py39
1 files changed, 32 insertions, 7 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py
index e602f0ab6..269fd43ed 100644
--- a/tests/unit/completion/test_models.py
+++ b/tests/unit/completion/test_models.py
@@ -269,13 +269,38 @@ def test_help_completion(qtmodeltester, cmdutils_stub, key_config_stub,
(':tab-close', 'Close the current tab.', ''),
],
"Settings": [
- ('aliases', 'Aliases for commands.', None),
- ('bindings.commands', 'Default keybindings', None),
- ('bindings.default', 'Default keybindings', None),
- ('completion.open_categories', 'Which categories to show (in '
- 'which order) in the :open completion.', None),
- ('content.javascript.enabled', 'Enable/Disable JavaScript', None),
- ('url.searchengines', 'searchengines list', None),
+ (
+ 'aliases',
+ 'Aliases for commands.',
+ '{"q": "quit"}',
+ ),
+ (
+ 'bindings.commands',
+ 'Default keybindings',
+ ('{"normal": {"<Ctrl+q>": "quit", "I": "invalid", "ZQ": "quit", '
+ '"d": "scroll down"}}'),
+ ),
+ (
+ 'bindings.default',
+ 'Default keybindings',
+ '{"normal": {"<Ctrl+q>": "quit", "d": "tab-close"}}',
+ ),
+ (
+ '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={}"}'),
+ ),
],
})