remove run() output from basicusage timed test.
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
import pytest
|
||||
|
||||
import bonobo as bb
|
||||
import bonobo.basics
|
||||
import bonobo
|
||||
from bonobo.execution import GraphExecutionContext
|
||||
from mock import patch
|
||||
|
||||
|
||||
@pytest.mark.timeout(2)
|
||||
def test_run_graph_noop():
|
||||
graph = bb.Graph(bonobo.basics.noop)
|
||||
graph = bonobo.Graph(bonobo.noop)
|
||||
assert len(graph) == 1
|
||||
|
||||
result = bb.run(graph, strategy='threadpool')
|
||||
assert result
|
||||
with patch('bonobo._api._is_interactive_console', side_effect=lambda: False):
|
||||
result = bonobo.run(graph)
|
||||
assert isinstance(result, GraphExecutionContext)
|
||||
|
||||
Reference in New Issue
Block a user