Skip to content

Commit ba15cd0

Browse files
committed
test(tar): Complete archives by extension
1 parent c94bebb commit ba15cd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/t/test_tar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,9 @@ def test_22(self, bash, completion):
122122
def test_23(self, completion):
123123
assert completion == "archive.tar.xz dir/ dir2/ escape.tar".split()
124124

125+
# Test detection of file type by extension, J is for .xz
126+
@pytest.mark.complete("tar xJf ", cwd="tar")
127+
def test_24(self, completion):
128+
assert completion == "archive.tar.xz dir/ dir2/".split()
129+
125130
# TODO: "tar tf escape.tar a/b"

0 commit comments

Comments
 (0)