DiamondLightSource / DiamondLightSource/dodal

Add module-scope for fixtures

Open
#810 0 comments 0 reactions 0 assignees View on GitHub
tests
Dominant language
Python
Stars
5
Forks
13
Avg merge
3d 2h
Merged PRs (30d)
10

Description

This prevents tests crashing into one another,
fixture is recreated for every different test file (module) that imports it.

[relevant pytest docs link](https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#scope-sharing-fixtures-across-classes-modules-packages-or-session)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.