Tony Yun
08/09/2022, 4:08 PM.prefect/config.toml
file to runtime environment? For example, I’m writing pytest
in VScode, when I run the test, it always fail for not finding the secrets that specified in that config file. I can only run in CLI python flow.py
fine.Khuyen Tran
08/09/2022, 4:15 PM.prefect/config.toml
?Tony Yun
08/09/2022, 4:16 PMKhuyen Tran
08/09/2022, 4:18 PMTony Yun
08/09/2022, 4:22 PMpython flow.py
it is fetching the secrets fine. But when I run unit tests, it is not fetching the secrets even after I set the python setting to setup this environment variable PREFECT__USER_CONFIG_PATH
Khuyen Tran
08/09/2022, 4:29 PMMason Menges
08/09/2022, 4:56 PMTony Yun
08/09/2022, 5:34 PMexport PREFECT__USER_CONFIG_PATH=~/.prefect/config
so if I run python flow.py
it will fetch the secrets properly.
How can I fetch the secrets too if I want to run an unit-test on VScode.PREFECT__USER_CONFIG_PATH
as part of os.environ
, however it didn’t help. so I wonder what’s the trick to load the Prefect secrets locallyMason Menges
08/09/2022, 5:49 PM