From 04f2088220bafa549368f35d1277109135667e42 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 22 May 2017 20:48:16 +0200 Subject: [PATCH] [qa] add test for bonobo run . --- bonobo/examples/types/__main__.py | 3 +++ tests/test_commands.py | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 bonobo/examples/types/__main__.py diff --git a/bonobo/examples/types/__main__.py b/bonobo/examples/types/__main__.py new file mode 100644 index 0000000..3d1549f --- /dev/null +++ b/bonobo/examples/types/__main__.py @@ -0,0 +1,3 @@ +from bonobo.util.python import require + +graph = require('strings').graph diff --git a/tests/test_commands.py b/tests/test_commands.py index 52428b6..ff358b3 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -59,6 +59,15 @@ def test_run_module(runner, capsys): assert out[1].startswith('Bar ') 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 def test_version(runner, capsys):