-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23d2176
commit 5c5c5c3
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |