https://pulumi.com logo
Title
m

miniature-oxygen-33318

04/21/2022, 3:46 PM
Hi I’m using python and aws and need to unit test some functions which use
pulumi_aws.apigateqway.RestApi
I have a class which has an input arg `api`type
pulumi_aws.apigateway
(`api:
pulumi_aws.apigateway
)and I need to test the values of
api.id
and `api.id.apply`but I’m struggling to work out how to mock this up. I found this https://www.pulumi.com/docs/guides/testing/unit/ but I can’t work out how to apply it to my case - is there more documentation; or preferably more complex examples to follow? Thanks!