Skip to content

Commit

Permalink
Update probe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Dec 8, 2014
1 parent 23d2176 commit 5c5c5c3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tests/test_probe.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
from pytest import raises
import shutil

from changes import probe
from . import context, setup, teardown


def test_probe_project():
assert probe.probe_project(context)

def test_probe_with_alt_requirements():
with raises(Exception):
shutil.rmtree(context.requirements)
probe.probe_project(context)

def test_has_binary():
assert probe.has_binary('git')


def test_has_no_binary():
assert not probe.has_binary('foo')


def test_has_test_runner():
assert probe.has_test_runner()

0 comments on commit 5c5c5c3

Please sign in to comment.