summaryrefslogtreecommitdiff
path: root/test/t/test_cd.py
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /test/t/test_cd.py
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'test/t/test_cd.py')
-rw-r--r--test/t/test_cd.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/t/test_cd.py b/test/t/test_cd.py
index fd532312..5b7789ae 100644
--- a/test/t/test_cd.py
+++ b/test/t/test_cd.py
@@ -9,7 +9,7 @@ class TestCd:
@pytest.mark.complete("cd fo", env=dict(CDPATH="shared/default"))
def test_2(self, completion):
- assert completion == "foo.d/"
+ assert completion == "o.d/"
@pytest.mark.complete("cd fo")
def test_3(self, completion):
@@ -20,3 +20,7 @@ class TestCd:
)
def test_4(self, completion):
assert not completion # No subdirs nor CDPATH
+
+ @pytest.mark.complete("cd shared/default/", trail="foo")
+ def test_dir_at_point(self, completion):
+ assert completion == ["bar bar.d/", "foo.d/"]