pulumi/sdk/python/lib/test/langhost/invoke
Zaid Ajaj 360ffc7884
[sdk/python] Always unwrap value from InvokeResult in invoke_async (#17349)
In #17275 I changed `invoke_async` to return `InvokeResult`, however
this variant of the invoke should always unwrap `value` from the
`InvokeResult`.

Reverted a changed test in #17275 thinking it was syntactic, however it
was not since it unwrapped the value in the test whereas the unwrapping
should have happened in the function implementation of `invoke_async`
```diff
async def await_invoke_async():
   value = await invoke_async(
        "test:index:MyFunction", props={"value": 41, "value2": get_value2()}
   )
   return value["value"]
```

Fixes #17347
2024-09-24 10:24:51 +00:00
..
__init__.py Implement Invoke for Python 3 (#2175) 2018-11-09 14:27:10 -08:00
__main__.py [sdk/python] Always unwrap value from InvokeResult in invoke_async (#17349) 2024-09-24 10:24:51 +00:00
test_invoke.py Use black to format lib/test (#16028) 2024-04-23 08:29:58 +00:00