summaryrefslogtreecommitdiff
path: root/test/t/test_man.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_man.py')
-rw-r--r--test/t/test_man.py26
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):