Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#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
https://github.com/pulumi/pulumi/issues/4472
ah here we go
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
3 Views
Post