def test_return_values(app, create_builder):
    (workflow, builder) = create_builder('example', 'RETURN_VALUES', {})
    result = builder.run()
    time.sleep(0.5)
    with app.app_context():
        tasks = {t.key: t.result for t in Task.query.all()}
    assert (tasks['STR'] == 'return_value')
    assert (tasks['INT'] == 1234)
    assert (tasks['LIST'] == ['jack', 'sape', 'guido'])
    assert (tasks['NONE'] is None)
    assert (tasks['DICT'] == {'foo': 'bar'})
    assert (tasks['NESTED'] == {'jack': 4098, 'sape': 4139, 'guido': 4127, 'nested': {'foo': 'bar'}, 'none': None, 'list': ['jack', 'sape', 'guido']})
def test_return_values(app, create_builder):
    (workflow, builder) = create_builder('example', 'RETURN_VALUES', {})
    result = builder.run()
    time.sleep(0.5)
    with app.app_context():
        tasks = {t.key: t.result for t in Task.query.all()}
    assert (tasks['STR'] == 'return_value')
    assert (tasks['INT'] == 1234)
    assert (tasks['LIST'] == ['jack', 'sape', 'guido'])
    assert (tasks['NONE'] is None)
    assert (tasks['DICT'] == {'foo': 'bar'})
    assert (tasks['NESTED'] == {'jack': 4098, 'sape': 4139, 'guido': 4127, 'nested': {'foo': 'bar'}, 'none': None, 'list': ['jack', 'sape', 'guido']})