https://pulumi.com logo
#python
Title
# python
h

happy-ability-61825

05/20/2021, 10:36 AM
Hi all, I am writing unit tests for our Pulumi stack and I am trying to understand how to use
Mocks.call()
to mock the return value from a get request (in this case
azure_native.network.get_subnet()
)
Copy code
class MyMocks(pulumi.runtime.Mocks):
    def call(self, args: pulumi.runtime.MockCallArgs):
        return {}
What should I be returning from in this function to simulate the response from
get_subnet()
?