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

Add support for a hook to override skip decision. #77

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ydirson
Copy link

@ydirson ydirson commented May 29, 2024

This declares a pytest_dependency_override_skip which can be implemented to decide not to skip a test when a specific dep is skipped or unknown.

This can be used when the dependency result is cached in some way, and the dependent test can retrieve it instead of rerunning a costly test.

This declares a pytest_dependency_override_skip which can be
implemented to decide not to skip a test when a specific dep is
skipped or unknown.

This can be used when the dependency result is cached in some way, and
the dependent test can retrieve it instead of rerunning a costly test.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request May 30, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")

FIXME:
* only demonstrates the hook, does nto yet probe the cache
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 11, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 12, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 13, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 14, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 17, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
ydirson added a commit to xcp-ng/xcp-ng-tests that referenced this pull request Jun 19, 2024
* requires RKrahl/pytest-dependency#77, must
  document that somewhere (but it's "just convenience")
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.

1 participant