Skip to content

Commit

Permalink
Merge pull request #620 from zkraus/main
Browse files Browse the repository at this point in the history
FIX: ignoring has_kuadrant() check when --setup-plan option is used
  • Loading branch information
averevki authored Jan 17, 2025
2 parents cab5452 + de3471c commit e6c9afe
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit e6c9afe

Please sign in to comment.