meshed.tests.test_meshed_tools
Test hybrid dag that uses a web service for some functions.
- meshed.tests.test_meshed_tools.test_hybrid_dag(dag_funcs=(<function cost>, <function clicks>, <function sales>, <function revenue>, <function profit>), funcs_ids_to_cloudify=['cost', 'revenue'], input_dict={'click_per_impression': 0.3, 'cost_per_impression': 0.02, 'impressions': 1000, 'revenue_per_sale': 100, 'sales_per_click': 0.05})[source]
Test hybrid dag that uses a web service for some functions.
- Parameters:
dag_funcs (List[Callable], optional) – list of dag functions, defaults to funcs
funcs_ids_to_cloudify (list, optional) – list of function ids to be cloudified, defaults to [‘cost’, ‘revenue’]
input_dict (dict, optional) – kwargs, defaults to dict( impressions=1000, cost_per_impression=0.02, click_per_impression=0.3, sales_per_click=0.05, revenue_per_sale=100 )