John-Craig Borman
12/09/2022, 6:40 PMRyan Peden
12/09/2022, 7:10 PMJohn-Craig Borman
12/09/2022, 7:17 PMOrionClient
correctly. I'd prefer to keep the setup as minimal as possible given that I don't need full end-to-end testing here.Ryan Peden
12/09/2022, 7:28 PMpip install prefect
and then when it finishes, run prefect orion start
, you'll have an Orion server running on port 4200.
If you want to be able to access Orion from machines other than the one it is running on, you'll probably need to run prefect orion start --host 0.0.0.0
Then, to ensure the client connects to the Orion server, you can run prefect config set PREFECT_API_URL=<http://localhost:4200/api>
if running the client on the same machine, or prefect config set PREFECT_API_URL=<http://your-orion-server-ip:4200/api>
if running elsewhere.
I think that's the absolute minimal setup; if there's more you need beyond that, I'll do my best to point you in the right direction!John-Craig Borman
12/09/2022, 7:32 PMprefect.testing.fixtures
there's a hosted_orion_api
pytest fixture - will this work out of the box in pytest or is there additional configuration required (e.g. environment variables/prefect context, etc)?
https://github.com/PrefectHQ/prefect/blob/main/src/prefect/testing/fixtures.py#L36Ryan Peden
12/09/2022, 8:02 PM