summaryrefslogtreecommitdiffstats
path: root/test/t/test_pyston.py
blob: 3c23f31b7de854ecf7e0c25274fb2b6f22665ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pytest


class TestPyston:
    @pytest.mark.complete("pyston ")
    def test_basic(self, completion):
        assert completion

    @pytest.mark.complete("pyston -", require_cmd=True)
    def test_options(self, completion):
        assert completion

    @pytest.mark.complete(
        "pyston -b",
        require_cmd=True,
        skipif="! pyston -h | command grep -qwF -- -bb",
    )
    def test_bb(self, completion):
        assert "-bb" in completion