diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /test/t/test_tshark.py | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'test/t/test_tshark.py')
-rw-r--r-- | test/t/test_tshark.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/t/test_tshark.py b/test/t/test_tshark.py index 8ed881ee..f49533e0 100644 --- a/test/t/test_tshark.py +++ b/test/t/test_tshark.py @@ -13,9 +13,8 @@ class TestTshark: @pytest.mark.complete("tshark -O foo,htt", require_cmd=True) def test_3(self, completion): - # When there's only one completion, it's be the one with "foo," prefix; - # when multiple (e.g. http and http2), it's the completion alone. - assert completion == "foo,http" or "http" in completion + # p: one completion only; http: e.g. http and http2 + assert completion == "p" or "http" in completion @pytest.mark.complete("tshark -o tcp", require_cmd=True) def test_4(self, completion): @@ -29,3 +28,7 @@ class TestTshark: def test_6(self, completion): """Test there are no URLs in completions.""" assert not any("://" in x for x in completion) + + @pytest.mark.complete("tshark -r ") + def test_input_files(self, completion): + assert completion |