Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pytest.fixture to conftest.py #450

Closed
paddyroddy opened this issue Nov 21, 2024 · 1 comment
Closed

Move pytest.fixture to conftest.py #450

paddyroddy opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request testing Work is related to testing

Comments

@paddyroddy
Copy link
Member

Is Your Feature Request Related to a Problem? Please Describe

I tend to put all pytest.fixture in conftest.py. This is also useful as the mock cosmo object is needed by multiple files.

Describe the Solution You'd Like

No response

Describe Alternatives You've Considered

No response

Additional Context

No response

@paddyroddy paddyroddy added enhancement New feature or request testing Work is related to testing labels Nov 21, 2024
@paddyroddy paddyroddy self-assigned this Nov 21, 2024
paddyroddy added a commit that referenced this issue Nov 21, 2024
This makes them available to all tests. I need `cosmo` for use in #449.

Have also added `scope="session"` so they are only computed once when
testing rather than multiple times.
@Saransh-cpp
Copy link
Member

Closed in #451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing Work is related to testing
Projects
None yet
Development

No branches or pull requests

2 participants