[qa] add test for bonobo run <path>.
This commit is contained in:
3
bonobo/examples/types/__main__.py
Normal file
3
bonobo/examples/types/__main__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from bonobo.util.python import require
|
||||||
|
|
||||||
|
graph = require('strings').graph
|
||||||
@ -59,6 +59,15 @@ def test_run_module(runner, capsys):
|
|||||||
assert out[1].startswith('Bar ')
|
assert out[1].startswith('Bar ')
|
||||||
assert out[2].startswith('Baz ')
|
assert out[2].startswith('Baz ')
|
||||||
|
|
||||||
|
@all_runners
|
||||||
|
def test_run_path(runner, capsys):
|
||||||
|
runner('run', '--quiet', get_examples_path('types'))
|
||||||
|
out, err = capsys.readouterr()
|
||||||
|
out = out.split('\n')
|
||||||
|
assert out[0].startswith('Foo ')
|
||||||
|
assert out[1].startswith('Bar ')
|
||||||
|
assert out[2].startswith('Baz ')
|
||||||
|
|
||||||
|
|
||||||
@all_runners
|
@all_runners
|
||||||
def test_version(runner, capsys):
|
def test_version(runner, capsys):
|
||||||
|
|||||||
Reference in New Issue
Block a user