Uniformisation of API for graph and node contexts (recv -> write), removing publication of LoopbackBag as this is not stable with current BEGIN/END implementation.

This commit is contained in:
Romain Dorgueil
2017-10-02 09:14:10 +02:00
parent d35598fe8c
commit e04c3dd849
9 changed files with 18 additions and 19 deletions

View File

@ -103,8 +103,8 @@ def test_version(runner, capsys):
def test_run_with_env(runner, capsys):
runner(
'run', '--quiet',
get_examples_path('env_vars/get_passed_env.py'), '--env', 'ENV_TEST_NUMBER=123',
'--env', 'ENV_TEST_USER=cwandrews', '--env', "ENV_TEST_STRING='my_test_string'"
get_examples_path('env_vars/get_passed_env.py'), '--env', 'ENV_TEST_NUMBER=123', '--env',
'ENV_TEST_USER=cwandrews', '--env', "ENV_TEST_STRING='my_test_string'"
)
out, err = capsys.readouterr()
out = out.split('\n')

View File

@ -62,7 +62,7 @@ def test_simple_execution_context():
assert not ctx.started
assert not ctx.stopped
ctx.recv(BEGIN, Bag(), END)
ctx.write(BEGIN, Bag(), END)
assert not ctx.alive
assert not ctx.started