-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.pre_commands( | ||
# Make sure our own ./configure is in PATH | ||
"PATH+=:$PWD/../..", | ||
) | ||
class TestConfigure(object): | ||
|
||
@pytest.mark.complete("configure --") | ||
def test_1(self, completion): | ||
assert completion.list | ||
|
||
@pytest.mark.complete("configure --prefix ") | ||
def test_2(self, completion): | ||
assert completion.list |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.pre_commands( | ||
"HOME=$PWD/cvs", | ||
) | ||
class TestCvs(object): | ||
|
||
@pytest.mark.complete("cvs ") | ||
def test_1(self, completion): | ||
assert completion.list | ||
|
||
@pytest.mark.complete("cvs -d ") | ||
def test_2(self, completion): | ||
assert [x for x in completion.list if ":pserver:" in x] | ||
|
||
@pytest.mark.complete("cvs diff foo/", cwd="cvs") | ||
def test_3(self, completion): | ||
assert completion.list == ["foo/bar"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.pre_commands( | ||
"HOME=$PWD/cvs", | ||
) | ||
class TestCvsps(object): | ||
|
||
@pytest.mark.complete("cvsps -") | ||
def test_1(self, completion): | ||
assert completion.list | ||
|
||
@pytest.mark.complete("cvsps ") | ||
def test_2(self, completion): | ||
assert [x for x in completion.list if ":pserver:" in x] |