Fix docstrings
This commit is contained in:
parent
8a42256cff
commit
5b0c10d430
@ -97,7 +97,6 @@ class ConfigCommands:
|
||||
pattern: The URL pattern to use.
|
||||
temp: Set value temporarily until qutebrowser is closed.
|
||||
print_: Print the value after setting.
|
||||
|
||||
"""
|
||||
if option is None:
|
||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||
|
@ -63,7 +63,7 @@ class TestSet:
|
||||
|
||||
@pytest.mark.parametrize('option', ['url.auto_search?', 'url.auto_search'])
|
||||
def test_get(self, config_stub, commands, message_mock, option):
|
||||
"""Run ':set url.auto_search?' / ':set url.auto_search?'.
|
||||
"""Run ':set url.auto_search?' / ':set url.auto_search'.
|
||||
|
||||
Should show the value.
|
||||
"""
|
||||
@ -186,7 +186,8 @@ class TestSet:
|
||||
|
||||
def test_empty(self, commands):
|
||||
"""Run ':set ?'.
|
||||
Should show an error.
|
||||
|
||||
Should show an error.
|
||||
See https://github.com/qutebrowser/qutebrowser/issues/1109
|
||||
"""
|
||||
with pytest.raises(cmdexc.CommandError, match="No option '?'"):
|
||||
|
Loading…
Reference in New Issue
Block a user