Fix docstrings

This commit is contained in:
Florian Bruhin 2018-09-02 15:46:57 +02:00
parent 8a42256cff
commit 5b0c10d430
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,6 @@ class ConfigCommands:
pattern: The URL pattern to use. pattern: The URL pattern to use.
temp: Set value temporarily until qutebrowser is closed. temp: Set value temporarily until qutebrowser is closed.
print_: Print the value after setting. print_: Print the value after setting.
""" """
if option is None: if option is None:
tabbed_browser = objreg.get('tabbed-browser', scope='window', tabbed_browser = objreg.get('tabbed-browser', scope='window',

View File

@ -63,7 +63,7 @@ class TestSet:
@pytest.mark.parametrize('option', ['url.auto_search?', 'url.auto_search']) @pytest.mark.parametrize('option', ['url.auto_search?', 'url.auto_search'])
def test_get(self, config_stub, commands, message_mock, option): 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. Should show the value.
""" """
@ -186,7 +186,8 @@ class TestSet:
def test_empty(self, commands): def test_empty(self, commands):
"""Run ':set ?'. """Run ':set ?'.
Should show an error.
Should show an error.
See https://github.com/qutebrowser/qutebrowser/issues/1109 See https://github.com/qutebrowser/qutebrowser/issues/1109
""" """
with pytest.raises(cmdexc.CommandError, match="No option '?'"): with pytest.raises(cmdexc.CommandError, match="No option '?'"):