now, I have load the file into sandbox with file r...
# general
w
now, I have load the file into sandbox with file rule,but pytest seems not load it.
g
Hey, is this your discussion as well? 🙂 https://github.com/pantsbuild/pants/discussions/20292
I did a quick repro and it works when I move the .test.env to the root, since that is the working directory when running. As far as I can tell pytest-dotenv doesn't start checking closest to the test file, but rather from cwd and up.
w
yes, this is me. I really think it would be great to be able to get the command underground
g
There's a __run.sh or similar in the sandbox most of the time which should contain the command and env setup
c
You use
--keep-sandboxes=always
to preserve those sandboxes for inspection after a run..