From 5b0c10d43049782a4f889a61776bef471b6f2d9b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 2 Sep 2018 15:46:57 +0200 Subject: [PATCH] Fix docstrings --- qutebrowser/config/configcommands.py | 1 - tests/unit/config/test_configcommands.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/config/configcommands.py b/qutebrowser/config/configcommands.py index 2d8ccd547..10e16c370 100644 --- a/qutebrowser/config/configcommands.py +++ b/qutebrowser/config/configcommands.py @@ -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', diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index 9da480b75..f70586152 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -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 '?'"):