Hi all, I am writing unit tests for our Pulumi sta...
# python
h
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()
?