I understand that for local execution, we can set local secrets; is the same possible for the key-value store? My unit tests are failing because I don't auth to Prefect, so I'm wondering whether I should mock
get_key_value
or if there's an ENV I can alternatively set.
k
Kevin Kho
09/17/2021, 3:41 PM
I think you need to mock. There is no way to substitute that with ENV variables.
upvote 1
z
Zach Angell
09/17/2021, 3:41 PM
Hey @Constantino Schillebeeckx right now you can't set local kv pairs and I would recommend mocking the relevant functions.
Happy to hear a bit more about testing utils or local envs that you would find valuable as future features 🙂
c
Constantino Schillebeeckx
09/17/2021, 3:46 PM
well, naively I was hoping to find something like this in the docs:
Copy code
export PREFECT__CONTEXT__KV__MYKEY="MY VALUE"
Constantino Schillebeeckx
09/17/2021, 3:46 PM
regardless, thanks for the feedback, I'll mock it out
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.