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

gorgeous-minister-41131

01/20/2022, 1:02 AM
Is there a way to patch in the
pulumi.Config
system into the unittest mocking framework?
I can’t seem to figure out how to deal with
config.require()
errors in the mock framework maybe I’m just doing something wrong
n

nutritious-shampoo-16116

02/07/2022, 3:25 PM
we extensively mock config in our projects, we use pytest and we have a big initiator that mocks all of the required values
will send you a piece of code of how we do that
6 Views