This message was deleted.
# python
s
This message was deleted.
f
You’ll want the mock to return the same ‘shape’ as what the function actually returns. The
token
refers to the function being called. For example, if you look at https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/acm/get_certificate.py#L103
You’ll see
Copy code
__ret__ = pulumi.runtime.invoke('aws:acm/getCertificate:getCertificate', __args__, opts=opts).value
And
aws:acm/getCertificate:getCertificate
is what
token
will be when you call
pulumi_aws.acm.get_certificate(...)
So typically, you’d just return
{}
for most functions if you don’t care about doing anything with them in your tests. If you do, you can compare against
token
and then decide what relevant thing you want to return for your testing.