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

able-thailand-87943

04/05/2022, 3:23 PM
Hello Folks, I have a weird problem... I've written some tests for pytest, and when I execute the test with the file, it works fine...
py.test -v tests/test_foobar.py
But if I run it without explicit providing the file name, to make sure it runs all tests under
tests
, it bombs with the error: pulumi.errors.RunError: Program run without the Pulumi engine available; re-run using the
pulumi
CLI
Does anyone have any suggestions to fix this?
n

nutritious-shampoo-16116

04/06/2022, 12:20 PM
are you mocking the pulumi engine for tests? it won't work otherwise
a

able-thailand-87943

04/12/2022, 6:22 PM
Thank you @nutritious-shampoo-16116 That was indeed the problem. We did manage to fix it.
3 Views