I understand that for local execution, we can set ...
# ask-community
c
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
I think you need to mock. There is no way to substitute that with ENV variables.
upvote 1
z
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
well, naively I was hoping to find something like this in the docs:
Copy code
export PREFECT__CONTEXT__KV__MYKEY="MY VALUE"
regardless, thanks for the feedback, I'll mock it out
👍 1