Hi, i m using `pulumi.runtime.set_mocks` w/ `pyte...
# general
g
Hi, i m using
pulumi.runtime.set_mocks
w/
pytest
, i've got different modules with a different set of tests, like so
Copy code
module1/{src,tests}
module2/{src,tests}
but it looks like once I set the mocks, they're set, meaning calling
pulumi.runtime.set_mocks
in module2 doesnt seem to have any effect, any ideas?
pytest module1
works fine
pytest module2
works also fine but
pytest
will fail because my mocks are different
e
put set_mocks inside your test function, not at the module level