summaryrefslogtreecommitdiffstats
path: root/test/t/test_carton.py
blob: 1c2e45310b0ab062bc1cce2bf7794a5ed1ab904a (plain)
1
2
3
4
5
6
7
8
9
10
11
import pytest


class TestCarton:
    @pytest.mark.complete("carton ", require_cmd=True)
    def test_commands(self, completion):
        assert all(x in completion for x in "help install".split())

    @pytest.mark.complete("carton install -", require_cmd=True)
    def test_install_options(self, completion):
        assert all(x in completion for x in "--cached --help".split())