microsoft / microsoft/AzureTRE

Session fixtures don't have effect with pytest-xdist

Open
#2,868 6 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug e2e-tests
Dominant language
Python
Stars
235
Forks
192
Avg merge
1d 23h
Merged PRs (30d)
13

Description

In https://github.com/microsoft/AzureTRE/issues/2839 , I created session fixtures to create a set of workspaces for testing,
Unfortunately, they don't work with pytest-xdist which I used to parallelise tests in https://github.com/microsoft/AzureTRE/issues/2840 (they still work but not as session-scoped, and get executed once per testing thread).

Find a different way to pre-create test workspaces, or a workaround for session scope fixtures for pytest, or abandon the idea of re-using test workspaces.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.