don’t perform lookups in [unit] tests. Are there any examples of mocking them out?
l
lemon-agent-27707
06/02/2020, 5:27 PM
I don't believe we have an example test that mocks out a get call. You can see the implementation of the mocks here: https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/mocks.go
any get/lookup function will ultimately call ReadResource wich calls NewResource in turn.