How to get the temp path factor from a hook executing in the controller process? #988
vitaly-krugl
started this conversation in
General
Replies: 1 comment 4 replies
-
Sorry, it's been a while. Does anyone know the answer? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a hook running in the controller process, I need to obtain the
pytest.TempPathFactory
instance that would produce the same temporary path as the fixturetmp_path_factory
in the Worker processes of the same test run.What I need to accomplish is to be able to save some data to a file in the worker processes in
pytest_terminal_summary
and read that data inpytest_terminal_summary
that is executing in the controller process. I need a way for them to agree on a common directory where to store and find those files.pytest.TempPathFactory
sounds ideal for this, except the controller process doesn't execute fixtures, so I am hoping you can suggest another way to get the same from a hook in a controllerBeta Was this translation helpful? Give feedback.
All reactions