def test_plugin_fetch(context, type, fields, dest): handle = TestDisplayHandle() run_task(plugin.plugin_fetch(context, type, fields, dest, handle)) return handle.getvalue()
def test_plugin_fetch(context, type, fields, dest): handle = TestDisplayHandle() async.run_task( plugin.plugin_fetch(context, type, fields, dest, handle)) return handle.getvalue()
def plugin_fetch(*args, **kwargs): return asyncio.get_event_loop().run_until_complete( plugin.plugin_fetch(*args, **kwargs))