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_man.py | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-upstream.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'test/t/test_man.py')
-rw-r--r-- | test/t/test_man.py | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/test/t/test_man.py b/test/t/test_man.py index ad36d96e..1ff9f84b 100644 --- a/test/t/test_man.py +++ b/test/t/test_man.py @@ -1,8 +1,6 @@ -import os - import pytest -from conftest import assert_bash_exec, in_container +from conftest import assert_bash_exec @pytest.mark.bashcomp( @@ -36,24 +34,16 @@ class TestMan: require_cmd=True, ) def test_1(self, completion): - assert completion == "bash-completion-testcase" + assert completion == "e" @pytest.mark.complete("man man1/f", cwd="man", env=dict(MANPATH=manpath)) def test_2(self, completion): - assert completion == "man1/foo.1" + assert completion == "oo.1" @pytest.mark.complete("man man/", cwd="man", env=dict(MANPATH=manpath)) def test_3(self, completion): - assert completion == "man/quux.8" - - @pytest.mark.xfail( - in_container() and os.environ.get("DIST") == "centos6", - reason="TODO: Fails in CentOS for some reason, unknown " - "how to trigger same behavior as tests show (is " - "different and correct when tried manually, but here " - "at least in CI completes things it should not with " - "this MANPATH setting)", - ) + assert completion == "quux.8" + @pytest.mark.complete( "man %s" % assumed_present, cwd="shared/empty_dir", @@ -82,7 +72,7 @@ class TestMan: env=dict(MANPATH="%s:" % manpath), ) def test_6(self, completion): - assert completion == "bash-completion-testcase" + assert completion == "e" @pytest.mark.complete( "man %s" % assumed_present, @@ -100,7 +90,7 @@ class TestMan: env=dict(MANPATH=":%s" % manpath), ) def test_8(self, completion): - assert completion == "bash-completion-testcase" + assert completion == "e" @pytest.mark.complete( "man %s" % assumed_present, @@ -118,7 +108,7 @@ class TestMan: env=dict(MANPATH="%s:../tmp/man" % manpath), ) def test_10(self, bash, colonpath, completion): - assert completion == "Bash::Completion" + assert completion == "ompletion" @pytest.mark.complete("man -", require_cmd=True) def test_11(self, completion): |