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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions testsuite/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def pytest_runtest_setup(item):
(https://docs.pytest.org/en/latest/example/markers.html#marking-test-functions-and-selecting-them-for-a-run)
In this function we skip or fail the tests that were selected but their capabilities are not available
"""
# prevents ERROR OpenShiftPythonException due to oc and kuadrant not being set-up
# when just printing setup plan
# error is raised during has_kuadrant()
if item.config.getoption("--setup-plan"):
return
marks = [i.name for i in item.iter_markers()]
skip_or_fail = pytest.fail if item.config.getoption("--enforce") else pytest.skip
standalone = item.config.getoption("--standalone")
Expand Down
Loading