I am using PyTest, and suppose I have a test function named test_func, which has two arguments named docker_mysql and docker_clickhouse, which are functions-fixtures in PyTest terminology. In this two functions I am pulling docker image and start it. Due to mechanism of fixtures, test_func calls fixtures step by step, so, the second docker container runs only after the first starts.
So, the question is: how to parallelize process of pulling docker containers to save time, because waiting for many docker containers in queue would be so annoying in the nearest future.
Personally, I've tried pytest-xdist but in CI-CD I didn't mention any changes in velocity. Also, I tried to make fixture that would do a thread using from threading import Thread, but I crashed.