diff options
Diffstat (limited to 'tests/unit/commands/test_parser.py')
-rw-r--r-- | tests/unit/commands/test_parser.py | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/tests/unit/commands/test_parser.py b/tests/unit/commands/test_parser.py index c679da5f7..ed9be4ba0 100644 --- a/tests/unit/commands/test_parser.py +++ b/tests/unit/commands/test_parser.py @@ -1,19 +1,6 @@ -# Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> +# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # -# This file is part of qutebrowser. -# -# qutebrowser is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# qutebrowser is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. +# SPDX-License-Identifier: GPL-3.0-or-later """Tests for qutebrowser.commands.parser.""" @@ -68,22 +55,22 @@ class TestCommandParser: p.parse_all(command) @pytest.mark.parametrize('command, name, args', [ - ("set-cmd-text -s :open", "set-cmd-text", ["-s", ":open"]), - ("set-cmd-text :open {url:pretty}", "set-cmd-text", + ("cmd-set-text -s :open", "cmd-set-text", ["-s", ":open"]), + ("cmd-set-text :open {url:pretty}", "cmd-set-text", [":open {url:pretty}"]), - ("set-cmd-text -s :open -t", "set-cmd-text", ["-s", ":open -t"]), - ("set-cmd-text :open -t -r {url:pretty}", "set-cmd-text", + ("cmd-set-text -s :open -t", "cmd-set-text", ["-s", ":open -t"]), + ("cmd-set-text :open -t -r {url:pretty}", "cmd-set-text", [":open -t -r {url:pretty}"]), - ("set-cmd-text -s :open -b", "set-cmd-text", ["-s", ":open -b"]), - ("set-cmd-text :open -b -r {url:pretty}", "set-cmd-text", + ("cmd-set-text -s :open -b", "cmd-set-text", ["-s", ":open -b"]), + ("cmd-set-text :open -b -r {url:pretty}", "cmd-set-text", [":open -b -r {url:pretty}"]), - ("set-cmd-text -s :open -w", "set-cmd-text", + ("cmd-set-text -s :open -w", "cmd-set-text", ["-s", ":open -w"]), - ("set-cmd-text :open -w {url:pretty}", "set-cmd-text", + ("cmd-set-text :open -w {url:pretty}", "cmd-set-text", [":open -w {url:pretty}"]), - ("set-cmd-text /", "set-cmd-text", ["/"]), - ("set-cmd-text ?", "set-cmd-text", ["?"]), - ("set-cmd-text :", "set-cmd-text", [":"]), + ("cmd-set-text /", "cmd-set-text", ["/"]), + ("cmd-set-text ?", "cmd-set-text", ["?"]), + ("cmd-set-text :", "cmd-set-text", [":"]), ]) def test_parse_result(self, config_stub, command, name, args): p = parser.CommandParser() |