def test_run(): rail_gun = Railgun(semaphores_count=5, loop=get_event_loop()) results = rail_gun.run( [example_method_one(1, 2), example_method_one(1, 2)]) assert len(results) == 2 assert results[0] == 3
def test_run_api_call(): rail_gun = Railgun(semaphores_count=5, loop=get_event_loop()) results = rail_gun.run([example_call_api(), example_call_api()]) assert len(results) == 2 assert results[0] == 200