๐Ÿ“ฆ scop / bash-completion

๐Ÿ“„ test_bsdtar.py ยท 12 lines
1
2
3
4
5
6
7
8
9
10
11
12import pytest


class TestBsdtar:
    @pytest.mark.complete("bsdtar xf bsdtar/")
    def test_readable_archives(self, completion):
        assert completion == "test.pax test.rar".split()

    @pytest.mark.complete("bsdtar uf bsdtar/")
    def test_writable_archives(self, completion):
        assert completion == "test.pax test.shar".split()