summaryrefslogtreecommitdiffstats
path: root/test/t/test_dot.py
blob: 733555c807d9ad5097337b0352daff962a0806e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest


class TestDot:
    @pytest.mark.complete("dot ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("dot t", cwd="dot")
    def test_2(self, completion):
        assert completion == ["test1.gv", "test2.dot"]

    @pytest.mark.complete("dot test1", cwd="dot")
    def test_3(self, completion):
        assert completion == ".gv"