Skip to content

Conversation

@szymonlopaciuk
Copy link
Contributor

Description

Automatically add a tag (context_dependent) to all the tests using @for_all_test_contexts and @require_context. This allows to select or exclude them using the tag in pytests, e.g. pytest -m context_dependent or -m 'not context_dependent'.

Checklist

Mandatory:

  • I have added tests to cover my changes
  • All the tests are passing, including my new ones
  • I described my changes in this PR description

Optional:

  • The code I wrote follows good style practices (see PEP 8 and PEP 20).
  • I have updated the docs in relation to my changes, if applicable
  • I have tested also GPU contexts

@giadarol giadarol merged commit 118e528 into xsuite:main Mar 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants