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

Tests: make our fixtures/pytest usage less magical #996

Open
woodruffw opened this issue Apr 30, 2024 · 0 comments
Open

Tests: make our fixtures/pytest usage less magical #996

woodruffw opened this issue Apr 30, 2024 · 0 comments
Labels
component:tests Unit and integration tests enhancement New feature or request

Comments

@woodruffw
Copy link
Member

We currently do a lot of unnecessary magic in our conftest.py, including nested fixtures and some global modifications using pytest's behavioral hooks. We should identity which pieces of magic we actually need, better encapsulate them, and remove the rest.

In particular, we probably need:

  1. A way to parameterize tests as running on both staging and production, with the ability to disable one or the other via a CLI option
  2. A way to run tests on only one instance or the other (i.e. staging or production)
  3. A better way to mark tests as online and/or needing an ambient OIDC credential
@woodruffw woodruffw added enhancement New feature or request component:tests Unit and integration tests labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:tests Unit and integration tests enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant