microsoft / microsoft/AzureTRE
Session fixtures don't have effect with pytest-xdist
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.