Hi, Can someone help me override Settings context?
Usecase:
I have 3 profiles:
1. local_db [Connects to self hosted postgres database]
2. dev [Dev prefect api]
3. prod [Prod prefect api]
In addition to that, I want a unit test profile which connects to a dockerized postgres. I do not want this to be a profile as the tests will be run on multiple machines - hence the need for a fresh Settings context. We cannot use the test harness as we need to run database queries.
How do I initialize my own settings context without creating new profile?
Deceivious
07/07/2023, 8:39 AM
There must be better ways that python native mock patch?
Deceivious
07/07/2023, 3:02 PM
I ended up copying the test harness function and modifying it to suit my needs.
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.