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

gorgeous-minister-41131

01/23/2024, 1:09 AM
Does anyone know the right way to mock a pulumi Config.require_object() in the python test framework? e.g.
Copy code
ERROR test_iam.py - pulumi.config.ConfigMissingError: Missing required configuration variable 'project:enabled_iam_roles'
I saw this: https://github.com/pulumi/pulumi/issues/4472 But is the right way to just hijack the environment?
also is there a way to mock this awaitable?
Copy code
AwaitableGetPolicyDocumentResult