Skip to content

Commit 5c5c5c3

Browse files
committed
Update probe tests
1 parent 23d2176 commit 5c5c5c3

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

tests/test_probe.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
from pytest import raises
2-
import shutil
3-
41
from changes import probe
52
from . import context, setup, teardown
63

74

85
def test_probe_project():
96
assert probe.probe_project(context)
107

11-
def test_probe_with_alt_requirements():
12-
with raises(Exception):
13-
shutil.rmtree(context.requirements)
14-
probe.probe_project(context)
8+
9+
def test_has_binary():
10+
assert probe.has_binary('git')
11+
12+
13+
def test_has_no_binary():
14+
assert not probe.has_binary('foo')
15+
16+
17+
def test_has_test_runner():
18+
assert probe.has_test_runner()

0 commit comments

Comments
 (0)