From 6c18848a903eb3ee06dccd915859ce64195c257c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:24:27 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- test/t/test_aptitude.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/t/test_aptitude.py (limited to 'test/t/test_aptitude.py') diff --git a/test/t/test_aptitude.py b/test/t/test_aptitude.py new file mode 100644 index 0000000..29569f1 --- /dev/null +++ b/test/t/test_aptitude.py @@ -0,0 +1,23 @@ +import pytest + + +class TestAptitude: + @pytest.mark.complete("aptitude ") + def test_1(self, completion): + assert completion + + @pytest.mark.complete("aptitude -", require_cmd=True) + def test_options(self, completion): + assert completion + + @pytest.mark.complete("aptitude --", require_cmd=True) + def test_long_options(self, completion): + assert completion + + @pytest.mark.complete("aptitude -u -") + def test_no_i_with_u(self, completion): + assert "-i" not in completion + + @pytest.mark.complete("aptitude -i -") + def test_no_u_with_i(self, completion): + assert "-u" not in completion -- cgit v1.2.3