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

FIX: ignoring has_kuadrant() check when --setup-plan option is used #620

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

zkraus
Copy link
Contributor

@zkraus zkraus commented Jan 16, 2025

When using --setup-plan to print out a "tesplan", pytest_runtest_setup uses has_kuadrant() check will fail when kuadrant is not deployed, or oc has no access to any openshift. Which is not necessary when just listing tests.

Adding the condition when --setup-plan is used to skip any checks.

fixes #618

When using --setup-plan to print out a "tesplan", `pytest_runtest_setup` uses `has_kuadrant()` check that might fail when oc client is not installed.

Adding the condition when --setup-plan is used to skip any checks.

fixes Kuadrant#618

Signed-off-by: Zdenek Kraus <[email protected]>
@averevki averevki merged commit e6c9afe into Kuadrant:main Jan 17, 2025
3 checks 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.

pytest --setup-plan should not execute tests
2 participants