https://pantsbuild.org/ logo
#general
Title
# general
w

worried-salesclerk-37834

10/20/2021, 10:03 PM
Is there a way for pants to read in a
.env
file as environment variables when running an integration test? Or do I need to add it as a file target and load via python-dotenv?
w

witty-crayon-22786

10/20/2021, 10:18 PM
yea, will need it as part of a
file
target
👍 1
you can also hardcode environment variables for tests via
[test] extra_env_vars
… but not slurp them from a file that way
w

worried-salesclerk-37834

10/20/2021, 10:52 PM
Got it. Thanks!
5 Views