From f4acb49ea148cdd899f7f29f1591c7bc853c2135 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:18 +0200 Subject: Adding upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- test/t/test_sudo.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test/t/test_sudo.py') diff --git a/test/t/test_sudo.py b/test/t/test_sudo.py index a349466..a7d67de 100644 --- a/test/t/test_sudo.py +++ b/test/t/test_sudo.py @@ -1,6 +1,6 @@ import pytest -from conftest import assert_complete +from conftest import assert_bash_exec, assert_complete class TestSudo: @@ -8,9 +8,9 @@ class TestSudo: def test_1(self, completion): assert completion - @pytest.mark.complete("sudo cd fo", cwd="shared/default") + @pytest.mark.complete("sudo cd foo", cwd="shared/default") def test_2(self, completion): - assert completion == "o.d/" + assert completion == ".d/" assert not completion.endswith(" ") @pytest.mark.complete("sudo sh share") @@ -81,3 +81,7 @@ class TestSudo: part, _ = part_full_group completion = assert_complete(bash, "sudo chown foo:bar:%s" % part) assert not completion + + def test_12(self, bash): + assert_complete(bash, 'sudo "/tmp/aaa bbb" ') + assert_bash_exec(bash, "! complete -p aaa", want_output=None) -- cgit v1.2.3