xdist

Accessing shared resource across master and worker nodes using pytest-xdist

Accessing shared resource across master and worker nodes using pytest-xdist Question: I’m trying to share a list of random entries from a database (my definition of a shared resource) across master and worker nodes and parallelize tests using pytest-xdist. My code follows the structure below: ## in conftest.py def get_db_entries(): connect to db run a …

Total answers: 2